## Matplotlib 3-D mesh wiregrid example

Matplotlib no longer needs cumbersome extra imports to make 3-D plots.

## Example

3-D mesh wiregrid: minimal working example for the current version of Matplotlib. You can pan, rotate, etc. in the figure window that opens.

```
from matplotlib.pyplot import figure,show
import numpy as np
def plot3():
x,y = np.meshgrid(np.linspace(0,2*np.pi), np.linspace(0,2*np.pi))
z = np.sin(x+0.5*y)
ax = figure().gca(projection='3d')
ax.plot_wireframe(x,y,z)
show()
if __name__ == '__main__':
plot3()
```

## Alternative

Mayavi for advanced 3-D plotting in Python