From: Eric F. <ef...@ha...> - 2011-05-15 03:44:00
|
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_subplot(111) > print ax.get_autoscale_on() > limits = ax.axis() > print ax.get_autoscale_on() > > It makes sense that it would be turned off if the axis's limits are > manually set, but calling ax.get_xlim() or ax.get_ylim() doesn't change > the autoscaling state, so why should getting the extents by calling > ax.axis()? It's a bug. Eric > > This seems like confusing and/or inconsistent behavior to me. Would this > be considered a bug? If not, is it worth clarifying in the docstring to > axis? > > Thanks, > -Joe |