[SciPy-User] creating a 3D surface plot from collected data
Robert Kern
robert.kern at gmail.com
Wed Feb 17 10:56:40 EST 2010
On Wed, Feb 17, 2010 at 08:54, URI <zallen at urologicresearchinstitute.org> wrote:
> I tried using mlab.mesh from mayavi but apparently the x y z components need to
> be 2D arrays (see
> http://code.enthought.com/projects/mayavi/docs/development/html/mayavi/auto/mlab_helper_functions.html#enthought.mayavi.mlab.mesh).
>
> I don't understand this, how can my list of the x-positions of the vertices be a
> 2D array?
It is for rectilinear grids of z=f(x,y) surfaces only.
> I did try to use mlab.plot3d (see
> http://code.enthought.com/projects/mayavi/docs/development/html/mayavi/auto/mlab_helper_functions.html#enthought.mayavi.mlab.plot3d)
> and it gave me a nice line drawing of my shape, but an actual surface would be
> much nicer.
Please see the previous posts about using the SurfaceReconstructionFilter.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
-- Umberto Eco
More information about the SciPy-User
mailing list