Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
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
importmatplotlib.pyplotaspltfig,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
TrueFalse# and the plot is **not** inverted
Expected outcome
TrueTrue# 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