Hi,

On Thu, Jun 4, 2009 at 23:26, citronade <ricit...@mac.com> wrote:
>
> I am trying to set the x and y axis range on a log-log plot. The ranges I
> give are automatically adjusted to the nearest power of 10, but I would like
> to have the minimum and maximum axis values not be powers of 10. Is there a
> way to set the axis range so that it is not automatically rescaled?

you can explicitly set the X and Y limits, actually overriding the
autoscale selection (to disable autoscale completely, exec
ax.set_autoscale_on(False) ).

depending on your code, you can use xlim([xmin, xmax]), ylim([ymin,
ymax]) or axis([xmin, xmax, ymin, ymax]).

Or directly from the Axes instances: set_xlim(), set_ylim().

You can check for the complete references of these functions on
matplotlib.sf.net

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to