Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a4be667

Browse files
committed
DOC : added note about useoffset rcparam
- added an `axes.formatter.useoffset` rcparam a while ago, failed to document it.
1 parent cca8e41 commit a4be667

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

doc/faq/howto_faq.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ How to prevent ticklabels from having an offset
4444
-----------------------------------------------
4545
The default formatter will use an offset to reduce
4646
the length of the ticklabels. To turn this feature
47-
off::
47+
off on a per-axis basis::
4848
ax.get_xaxis().get_major_formatter().set_useOffset(False)
4949

50-
or use a different formatter. See :mod:`~matplotlib.ticker`
51-
for details.
50+
set the rcParam ``axes.formatter.useoffset``, or use a different
51+
formatter. See :mod:`~matplotlib.ticker` for details.
5252

5353
.. _howto-transparent:
5454

lib/matplotlib/ticker.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
2727
ax.get_xaxis().get_major_formatter().set_useOffset(False)
2828
29-
or set a different formatter.
29+
set the rcParam ``axes.formatter.useoffset=False`` to turn it off
30+
globally, or set a different formatter.
3031
3132
Tick locating
3233
-------------
@@ -62,7 +63,7 @@
6263
intelligent ticking during navigation
6364
6465
:class:`MaxNLocator`
65-
finds up to a max number of ticks at nice locations
66+
finds up to a max number of ticks at nice locations
6667
6768
:class:`AutoLocator`
6869
:class:`MaxNLocator` with simple defaults. This is the default

0 commit comments

Comments
 (0)