Skip to content

Use the right function to disable the offset #16239

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions lib/matplotlib/ticker.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@
will have tick of 0-9 with an offset of +2e3. If this is not desired
turn off the use of the offset on the default formatter::

ax.get_xaxis().get_major_formatter().set_useOffset(False)

Set :rc:`axes.formatter.useoffset` to turn it off
globally, or set a different formatter.
ax.get_xaxis().get_major_formatter().set_scientific(False)

Tick locating
-------------
Expand Down