[SciPy-user] Mlab doesn't work
Fri Jun 13 08:27:46 CDT 2008
On Fri, Jun 13, 2008 at 2:51 PM, Gael Varoquaux
> On Fri, Jun 13, 2008 at 02:34:00PM +0200, Alexander Borghgraef wrote:
>> On Fri, Jun 13, 2008 at 2:25 PM, fred <email@example.com> wrote:
>> > Alexander Borghgraef a écrit :
>> >> I've built the enthought libraries from source on an Fedora 8 system,
>> >> and installed them in a local directory (I have no access to
>> >> /usr/lib). Importing the libraries works fine, and so does running the
>> >> mayavi2 binary, but I haven't managed to get something plotted from a
>> >> python script. Any ideas?
>> > Can you tell us how you run your script ?
>> Saved it to mlabtest.py, then ran
> As it is indicated on the top of the page you are looking at, you should
> run this in "ipython -wthread", for instance using "%run mlabtest.py".
Ok. That works, thanks.
> Just a question, why are you using TVTK's mlab. Mayavi's mlab (developped
> by the same people) is more maintained, eventhought it has a bit more
Well, because it says tvtk in the example on scipy's cookbook page. I
tend to use matplotlib for data visualization, but since 3D
visualization was hideously sluggish the last time I tried it, I
decided to give mayavi a spin. Download it , build it, try to run the
example code, harass the mailing list... you all know the drill, I
guess. :-) Standard OSS user behaviour.
> You can have a look at
> on section 6 (page 22). One remark, if you are using an oldish version of
> mayavi, you need to import mlab from enthought.mayavi.tools", rather than
RTFM, IOW :-D Will do. I just wanted a quick 3D plot of my data,
nothing fancy or interactive, so I skipped the manual and went for the
Oh, and about the subject: no offense intended (and none taken
apparently, thanks Gaël). I just lacked inspiration for the topic
title (and I didn't have much info to share in it) so I kept it
simple. Furthermore, I truly appreciate the work done by the mayavi
people, as well as the scipy people and all open source developers for
that matter. Couldn't do my work without them.
More information about the SciPy-user