我正在寻找图书馆。我有要使用Python绘制的3D网格数据。当我想绘制2D网格数据时,我使用matplotlib的matshow
:
from matplotlib.pylab import matshow, show
matshow(some_data)
show()
但是现在我有了这种栅格数据的3D版本,我希望能够绘制堆叠在3D空间中的盒子(立方体)。理想情况下,使用matplotlib可以解决此问题,但我猜测解决方案将在另一个库中(希望是Anaconda中的某个库)。
如@Bas Jansen所述,您可以按以下方式使用mayavi进行此操作,