Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Plotting on a log/logit scale overwrites axis inverting #14620

Copy link
Copy link
Closed
@lkluft

Description

@lkluft
Issue body actions

Bug report

Bug summary

When plotting on a log axis that has been inverted, the inverting is overwritten.

This happens for "log" and "logit" scales but not for "linear" or "symlog", which both work as expected.

Code for reproduction

import matplotlib.pyplot as plt


fig, ax = plt.subplots()
ax.set_yscale('log')  # or 'logit'
ax.yaxis.set_inverted(True)

print(ax.yaxis.get_inverted())
ax.plot(range(50), range(50))
print(ax.yaxis.get_inverted())

Actual outcome

True
False
# and the plot is **not** inverted

Expected outcome

True
True
# and an inverted plot

Matplotlib version

  • Operating system: Linux and MacOS
  • Matplotlib version: 3.1.0
  • Python version: 3.7.3

Python and matplotlib have been installed using conda.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.