So the question is, how can I turn off auto-scaling and just
> leave the plot window to the specified rectangle
> [-1.1,1.1]^2 ?
No way in the current release. But it is a good idea so I just added
the "autoscale_on" property to the Axes, which you can use like
ax.set_autoscale_on(False)
I'm hoping to get a release out tomorrow, but the changes are in CVS.
Checking in lib/matplotlib/axes.py;
/cvsroot/matplotlib/matplotlib/lib/matplotlib/axes.py,v <-- axes.py
new revision: 1.109; previous revision: 1.108
Thanks for the suggestion,
JDH
Dear John,
> So the question is, how can I turn off auto-scaling and just
> leave the plot window to the specified rectangle
> [-1.1,1.1]^2 ?
No way in the current release. But it is a good idea so I just added
the "autoscale_on" property to the Axes, which you can use like
ax.set_autoscale_on(False)
Great, I just updated to 0.81 - it works fantastic!
Thanks for the suggestion,
Well, I have to thank you for implementing this
(much faster than I could test this ;-).
Just one more question on this:
is there an even simpler way to activate
this than via
fig = figure(figsize=(6,6))
ax = fig.add_axes([0.1, 0.1, 0.8, 0.8])
ax.set_autoscale_on(False)
?
For example, could one apply a general
autoscale(False)
to the following plot(s)/subplots?
Many thanks,
Arnd
···
On Mon, 6 Jun 2005, John Hunter wrote: