【问题标题】:How to convert 2D Matplotlib to 3D vpython?如何将 2D Matplotlib 转换为 3D vpython?
【发布时间】:2018-07-30 02:59:14
【问题描述】:

我有一个 AI 类项目,要求我们将 2D matplotlib 编程更改为 vpython 3D。我想知道是否有这方面经验的人可以给我一些指示或提示。

【问题讨论】:

    标签: python matplotlib vpython


    【解决方案1】:

    假设您使用的是新的 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 文档。

    http://www.glowscript.org/docs/VPythonDocs/triangle.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-07-11
      • 2013-03-28
      • 2017-09-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多