enthought / enthought/mayavi

mayavi can only show a 3d image with axes

Open
#628 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.4k
Forks
316
Avg merge
7h 44m
Merged PRs (30d)
5

Description

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( - x**2 - y**2)

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](https://user-images.githubusercontent.com/38416440/38791331-a7d3fd32-4179-11e8-9aca-fbfc45f093d9.png)
and this is the image:
![image](https://user-images.githubusercontent.com/38416440/38791347-ba5cd1cc-4179-11e8-887e-71557c0473d2.png)
I have no idea about it. Can anyone help me? thx!!!!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.