-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Closed
Milestone
Description
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
Labels
No labels