We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 8 months ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(4)
我的第一个想法是 Mayavi,它非常适合数据可视化,尤其是 3D 数据可视化。它依赖于VTK。它包含在 Python 的 Enthought 风格版本中,与用于 2D 绘图的 Chaco 一起。要了解想法,请观看 Travis Vaught 在 Python 中的多维数据可视化 - 混合 Chaco 中的精彩截屏视频和玛雅维。
还可以将基本的交互功能(如滑块)嵌入到 Matplotlib 中,请参阅 matplotlib.widgets 和小部件示例。
最后,您可以使用 rpy(或更好的
rpy2
)并从 R 接口中受益。My first thought would be Mayavi, which is great for data visualization, especially in 3D. It relies on VTK. It is included in the Enthought flavoured version of Python, together with Chaco for 2D plotting. To get an idea, look at Travis Vaught's nice screencast in Multidimensional Data Visualization in Python - Mixing Chaco and Mayavi.
It also possible to embed basic interactive functionalities (like slider) to Matplotlib, see
matplotlib.widgets
and the widget examples.Finally, you can use rpy (or better,
rpy2
) and benefit from the R interface.你看过Vtk吗? http://www.vtk.org/ 他们的一个演示完全符合您的要求。
Have you looked at Vtk? http://www.vtk.org/ One of their demos does exactly what you're asking.
原则上,您可以借助 MathGL 来完成。这是用于绘图的跨平台 GPL 库。
对于每次鼠标单击,您都可以找到绘图或单击对象中的 x、y、z 位置,并相应地调整(重新绘制)一些其他信息。但是,您应该自己处理鼠标点击(例如,使用 PyQt)。
In principle, you can do it by help of MathGL. This is cross-platform GPL library for plotting.
For each mouse clicks you can find the x,y,z position in plot or clicked object and adjust (replot) some other information correspondingly. However you should handle mouse clicks by yourself (for example, using PyQt).
另一种选择是在 SAGE 计算接口/环境中使用 python,它具有
@interact 命令(有关此命令的具体帮助,请参阅此处)
Another option is to use python within the SAGE computation interface/environment, which has the
@interact
command (see here for specific help on this command)