Gael Varoquaux | 4 Aug 18:32

Re: Modify surf output (axes, scaling)

On Mon, Aug 04, 2008 at 06:16:42PM +0200, Thomas Königstein wrote:
>    Wow, thanks for your elaborate reply.

Well, it should be a simple reply, but the problem is that you are on a
pretty old version of Mayavi, and the simple way of doing what you want
to do are simply not in your version.

> I'm just afraid the code you
>    supplied doesn't work for me as w doesn't have a "add_filter" method.
>    enthought.mayavi.version.version == 2.1.1 for me. I'll try around with the
>    alternatives you mentioned when I have more time.

Yes, sorry about that. Use the "add_child" method.

What platform are you on? It woul be nice to get you to a newer version
of Mayavi. It would make your life easier.

>    And the other thing, with the quiver3d plot, I just want to move a plot
>    spatially. For example:

>    from enthought.mayavi.mlab import quiver3d;from numpy import
>    random;a=quiver3d(*array([random.random(40) for i in
>    range(6)]));b=quiver3d(*array([random.random(40) for i in range(6)]))

>    gives me two "bunches" of vectors, both at the same location. How can I
>    now seperate one from the other?

That is what the extent keyword argument is for. Just give two extents
located in different regions. Does that make sens?

Cheers,

Gaël

_______________________________________________
Enthought-dev mailing list
Enthought-dev@...
https://mail.enthought.com/mailman/listinfo/enthought-dev

Gmane