Python中的3D网格图

问题描述 投票:2回答:1

我正在寻找图书馆。我有要使用Python绘制的3D网格数据。当我想绘制2D网格数据时,我使用matplotlib的matshow

from matplotlib.pylab import matshow, show
matshow(some_data)
show()

matshow example

但是现在我有了这种栅格数据的3D版本,我希望能够绘制堆叠在3D空间中的盒子(立方体)。理想情况下,使用matplotlib可以解决此问题,但我猜测解决方案将在另一个库中(希望是Anaconda中的某个库)。

python matplotlib plot 3d anaconda
1个回答
2
投票

如@Bas Jansen所述,您可以按以下方式使用mayavi进行此操作,

© www.soinside.com 2019 - 2024. All rights reserved.