Mayavi: How to draw "normal" xyz axis?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Mayavi: How to draw "normal" xyz axis?

myocytebd
 
Hi,

How to draw "normal" xyz axis?
Say, I want the xyz axis show from -5 to +10, joining at origin.

mlab.axes() draws axis in some auto way that xyz often don't cross at origin, and I cannot find a way to control the range of axis drawn (not label).


_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: Mayavi: How to draw "normal" xyz axis?

Gael Varoquaux
On Fri, Sep 06, 2013 at 07:05:53PM +0800, [hidden email] wrote:
> mlab.axes() draws axis in some auto way that xyz often don't cross at origin,
> and I cannot find a way to control the range of axis drawn (not label).

Use the 'extent' argument.

G
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev