Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 Python mayavi 中使用 mlab 绘制了一些东西。出于某种原因,当我通过以下方式创建等值面时:
s = mlab.contour3d(xx, yy, zz, data, contours=[1.5], figure=fig)
当它应该是 (0.5, 0.5, 0.5) 时,它会创建一个间距为 (0, 0, 0.5) 的间距。如何在我的脚本中设置该间距,而无需手动进入图形的管道(如下所示)?
截屏
我能够自己解决这个问题:
fig.children[-1].spacing = np.array([0.5, 0.5, 0.5])