invert_xaxis() accidentially disables autoscaling #1553

WeatherGod opened this Issue Dec 3, 2012 · 2 comments


None yet

3 participants

Matplotlib Developers 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.

Matplotlib Developers member
@WeatherGod WeatherGod added a commit to WeatherGod/matplotlib that referenced this issue Dec 4, 2012
@WeatherGod WeatherGod Added a test for #1553 d1db488
Matplotlib Developers member

Closed by #1557.

@dmcdougall dmcdougall closed this Dec 17, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment