FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Use the right function to disable the offset by vallsv · Pull Request #16239 · matplotlib/matplotlib · GitHub

Repository navigation

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
5 changes: 1 addition & 4 deletions lib/matplotlib/ticker.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Back | FazBrowse Home | New Git URL