[MayaVi-users] getting mayamat.py and other comments
Status: Beta
Brought to you by:
prabhu_r
|
From: <ho...@il...> - 2003-02-22 19:02:37
|
Hi Prahbu!
One fast question: Where can I get mayamat.py? I was googling around but found
nothing.
And now a few comments:
First let me say thanks for the wonderful program MayaVi.
At my institute I use python + Numeric and Scipy together with some C++ Code for
simulating laser resonators. IDLE + dislin together with disipyl (for nice 2d plots and
sometimes 3d plots) + MayaVi (for realy wonderfull data visualisation) builts a really
wonderfull and powerfull enviroment for doing this (If somebody knows something
simular in an other (perhabs faster) GUI--> Let me know!!) These three parts fits
really together (after changing a few lines of Code) . Idle and MayaVi are based on TK
and in the disipyl package (very nice wrapper for dislin) there is the tkdisipyl.Diddle
class for using dislin interactive in IDLE, so one can really use them together in one
(IDLE) shell. I tryed many other things but found nothing better that gives you an free
interactive scientific enviroment with "integrated" 2D and 3D plotting posibilitis. Perhaps
if Scipy is finished (with integreated MayaVi and finished Chaco) we will have
something similar.
There is only one thing that disturbs me on MayaVi. The slow data transfer from IDLE
to MayaVi via writing and reading vtkdata files. With dislin you can directly visualise
data from Numeric arrays without first (slowly) writing them to files and then reading
them again. This is very powerful if you are manipulating large array data interactive,
because you must have the data anyway in the computers memory. Now I was reading
something about mayamat.py in the communication between Prabhu and Fernando
Perez. Perhabs this is what I searching for. The example:
from Numeric import *
import mayamat
def f(x, y):
return sin(x*y)/(x*y)
x = arange(-5., 5.05, 0.05)
y = arange(-5., 5.05, 0.05)
v = mayamat.surf(x, y, f)
If mayamat.surf send the data direct to MayaVi (or better say vtk) this would be
wonderfull for me.
cheers
Marco
------------------------------------------------------------
# Dipl. Phys. Marco Hoefer
# Fraunhofer Institut f. Lasertechnik
# Steinbachstr. 15, D-52074 Aachen, Germany.
# Tel: + 49 (0) 241 8906 128, Fax: +49 (0) 241 8906 121
# EMail: ho...@il..., WWW: http://www.ilt.fhg.de
|