8000 invert_xaxis() accidentially disables autoscaling · Issue #1553 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
invert_xaxis() accidentially disables autoscaling #1553
@WeatherGod

Description

@WeatherGod

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0