Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
aowenli opened this issue Apr 16, 2018 · 1 comment
Open

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

aowenli opened this issue Apr 16, 2018 · 1 comment

Comments

@aowenli
Copy link

aowenli commented Apr 16, 2018

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants