Re: [Matplotlib-users] Getting axis limits through ax.axis() turns off autoscaling. Confusing behavior?

2011-05-14 Thread Eric Firing
On 05/14/2011 12:22 PM, Joe Kington wrote: > Hi, > > When getting an axis's extents through "axis", the autoscaling state of > the axis is turned off, regardless of the state it was in before calling > "ax.axis()" > > E.g. > import matplotlib.pyplot as plt > fig = plt.figure() > ax = fig.add_subplo

Re: [Matplotlib-users] Getting axis limits through ax.axis() turns off autoscaling. Confusing behavior?

2011-05-14 Thread Eric Firing
On 05/14/2011 12:22 PM, Joe Kington wrote: > Hi, > > When getting an axis's extents through "axis", the autoscaling state of > the axis is turned off, regardless of the state it was in before calling > "ax.axis()" > > E.g. > import matplotlib.pyplot as plt > fig = plt.figure() > ax = fig.add_subplo

[Matplotlib-users] Getting axis limits through ax.axis() turns off autoscaling. Confusing behavior?

2011-05-14 Thread Joe Kington
Hi, When getting an axis's extents through "axis", the autoscaling state of the axis is turned off, regardless of the state it was in before calling "ax.axis()" E.g. import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(111) print ax.get_autoscale_on() limits = ax.axis() print a