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

Two issues with the axes offset indicator #4445

Closed
@anntzer

Description

@anntzer

Consider:

plt.plot(10001 + np.arange(10), 10001 + np.arange(10))plt.setp(plt.gca().get_yticklabels(), visible=False)plt.show()

Thex axis is labeled 0..9 + 1.0001e4. I'd suggest changing this to 1..10 + 1.0000e4, which is IMO much more legible.

They axis doesn't show the tick labels, as expected, but the offset indicator ("+1.0001e4") is still there.setp(get_{x,y}ticklabels(), visible=False) is certainly a commonly used approach (e.g. bySubplotBase.label_outer()).
What I believe the correct solution, which is also setoffsetText (which can be obtained byget_offset_text()) to invisible, is a bit obscure (and not mentioned in the docs).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp