Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

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

Closed
Milestone
@lkluft

Description

@lkluft

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

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


      [8]ページ先頭

      ©2009-2025 Movatter.jp