enthought / mayavi

3D visualization of scientific data in Python
http://docs.enthought.com/mayavi/mayavi/
Other
1.3k stars 285 forks source link

mayavi can only show a 3d image with axes #628

Open aowenli opened 6 years ago

aowenli commented 6 years ago

This is my code: `import numpy as np import mayavi.mlab as mlab

x, y = np.ogrid[-2:2:20j, -2:2:20j] z = x * np.exp( - x2 - y2)

pl = mlab.surf(x, y, z) mlab.axes(xlabel='x', ylabel='y', zlabel='z') mlab.outline(pl) mlab.show()` when I ran this code, I got this: image and this is the image: image I have no idea about it. Can anyone help me? thx!!!!

prabhuramachandran commented 5 years ago

What version of Mayavi is this? I suspect you have an old version. Can you try with the latest version?