一个数组的等高3D在Python的

时间:2012-08-23 07:58:09

标签: python matplotlib

在python中,使用contour命令绘制2D数组的2D轮廓非常简单。

      img=ones((4,4))
      contour(img)

我想知道在有3D阵列的情况下是否存在类似的东西?

1 个答案:

答案 0 :(得分:0)

查看Axes3D模块,您还可以在其中找到contour功能。

来自文档:

  

Axes3D.contour(X,Y,Z,* args,** kwargs)

     

创建三维等高线图。

enter image description here