【发布时间】:2018-07-30 02:59:14
【问题描述】:
我有一个 AI 类项目,要求我们将 2D matplotlib 编程更改为 vpython 3D。我想知道是否有这方面经验的人可以给我一些指示或提示。
【问题讨论】:
标签: python matplotlib vpython
我有一个 AI 类项目,要求我们将 2D matplotlib 编程更改为 vpython 3D。我想知道是否有这方面经验的人可以给我一些指示或提示。
【问题讨论】:
标签: python matplotlib vpython
假设您使用的是新的 VPython 语法,而不是旧的“经典”VPython,这里有一个 VPython 3D 绘图演示程序的链接。
http://www.glowscript.org/#/user/GlowScriptDemos/folder/Examples/program/Plot3D
这是这个演示程序的 VPython 代码。
http://www.glowscript.org/#/user/GlowScriptDemos/folder/Examples/program/Plot3D/edit
这里是关于从顶点创建三角形和四边形的 VPython 文档。
【讨论】: