[SciPy-dev] [ANN] imv.py: interactive 3D plots with MayaVi.

Prabhu Ramachandran prabhu at aero.iitm.ernet.in
Fri Feb 28 02:02:48 CST 2003


hi,

imv.py is a module that lets you sample surfaces and arrays from the
Python interpreter via convenient one line functions.  It requires
MayaVi (version 1.2) to be installed and running as a Python module
i.e. the binary installs will not be able to use this.  

imv provides three useful functions:

  surf -- Creates a surface given regularly spaced values of x, y and
  the corresponding z as arrays.  Also works if z is a function.

  view -- Allows one to view a 2D Numeric array.  Note that the view
  will be set to the way we normally think of matrices with with 0, 0
  at the top left of the screen.  Works best for smaller arrays
  (size < 512x512).

  viewi -- Allows one to view a 2D Numeric array as an image.  This
  works best for very large arrays (like 1024x1024 or larger arrays).

The code is well documented and has an illustrative example in the
function 'main' at the end of the file.  To see the example simply run
imv.py.

The module is available here:

 http://www.ae.iitm.ac.in/~prabhu/software/mayavi.html

or

 http://www.aero.iitm.ernet.in/~prabhu/software/mayavi.html


Additionally, the module has some code that lets you easily convert
Numeric Arrays into vtkDataArrays.  So if you are interested in doing
that you might want to take a look at the code.

Have fun!
prabhu

p.s. Sorry about the cross-posting.



More information about the Scipy-dev mailing list