Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invert_xaxis() accidentially disables autoscaling #1553

Closed
WeatherGod opened this issue Dec 3, 2012 · 2 comments
Closed

invert_xaxis() accidentially disables autoscaling #1553

WeatherGod opened this issue Dec 3, 2012 · 2 comments

Comments

@WeatherGod
Copy link
Member

the call to ax.invert_xaxis() (and the y-axis equivalent) blindly swaps the limits using set_xlim(). This sets autoscale to False. I think the autoscaling attribute should be left unchanged so that one can use invert_axis() prior to any plotting and still have the direction of the axis maintained. If others agree, I can quickly make a PR that fixes this in Axes and Axes3D.

@efiring
Copy link
Member

efiring commented Dec 4, 2012

On 2012/12/03 8:51 AM, Benjamin Root wrote:

the call to ax.invert_xaxis() (and the y-axis equivalent) blindly swaps
the limits using set_xlim(). This sets autoscale to False. I think the
autoscaling attribute should be left unchanged so that one can use
invert_axis() prior to any plotting and still have the direction of the
axis maintained. If others agree, I can quickly make a PR that fixes
this in Axes and Axes3D.

Your suggestion sounds right to me.

WeatherGod added a commit to WeatherGod/matplotlib that referenced this issue Dec 4, 2012
@dmcdougall
Copy link
Member

Closed by #1557.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants