API Reference for Enthought Tool Suite 3.2.0

Plots iso-surfaces for a 3D volume of data suplied as arguments.

Function signatures:

contour3d(scalars, ...)
contour3d(x, y, z, scalars, ...)

scalars is a 3D numpy arrays giving the data on a grid.

If 4 arrays, (x, y, z, scalars) are passed, the 3 first arrays give the position of the arrows, and the last the scalar value. The x, y and z arrays are then supposed to have been generated by numpy.mgrid, in other words, they are 3D arrays, with positions lying on a 3D orthogonal and regularily spaced grid with nearest neighboor in space matching nearest neighboor in the array. The function builds a scalar field assuming the points are regularily spaced.

If 4 positional arguments, (x, y, z, f) are passed, the last one can also be a callable, f, that returns vectors components (u, v, w) given the positions (x, y, z).

Inherits from

Attributes

Inherited from base classes

Method summary

Inherited from base classes

© Copyright 2002-2009 Enthought, Inc.