[SciPy-user] surface plotting
Gael Varoquaux
gael.varoquaux at normalesup.org
Thu Dec 6 03:48:40 EST 2007
On Thu, Dec 06, 2007 at 12:23:42PM +0530, Prabhu Ramachandran wrote:
> With the script you sent, you could do this:
> from enthought.mayavi.tools import mlab
> mlab.figure()
> s = mlab.surf(X, Y, Z, colormap='jet')
> This will give you a 3D surface. You can't set the contours directly
> but you certainly can modify the returned object or do this from the UI.
> For example,
> s.enable_contours = True
> s.contour.filled_contours = True
> s.contour.contours = range(-17, 16)
See also contour_surf which will give you convenient keyword arguments
for that.
Gaël
More information about the SciPy-User
mailing list