s = 2 + sin(t)
mayavi.mlab.points3d(x, y, z, s, colormap='copper', scale_factor=0.25)
arr = mayavi.mlab.screenshot()
fig = plt.figure(figsize=(5, 5))
pylab.imshow(arr)
plt.show()
Using Mayavi to make 3D graphs, with Matplotlib-style axes