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

Skip to content

Commit 77dc47b

Browse files
committed
DOC: offset_threshold in whats_new and dflt_style_changes
1 parent 255d4c3 commit 77dc47b

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

doc/users/dflt_style_changes.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,6 +1065,17 @@ Z-order
10651065

10661066

10671067

1068+
``ScalarFormatter`` tick label formatting with offsets
1069+
======================================================
1070+
1071+
With the default of ``rcParams['axes.formatter.useoffset'] = True``,
1072+
an offset will be used when it will save 4 or more digits. This can
1073+
be controlled with the new rcParam, ``axes.formatter.offset_threshold``.
1074+
To restore the previous behavior of using an offset to save 2 or more
1075+
digits, use ``rcParams['axes.formatter.offset_threshold'] = 2``.
1076+
1077+
1078+
10681079
``AutoDateFormatter`` format strings
10691080
====================================
10701081

doc/users/whats_new.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,16 @@ New rcparams added
8282
|`ytick.minor.right`, | |
8383
|`ytick.major.right` | |
8484
+---------------------------------+--------------------------------------------------+
85-
|`hist.bins` | the default number of bins to use in |
85+
|`hist.bins` | The default number of bins to use in |
8686
| | `~matplotlib.axes.Axes.hist`. This can be an |
8787
| | `int`, a list of floats, or ``'auto'`` if numpy |
8888
| | >= 1.11 is installed. |
8989
+---------------------------------+--------------------------------------------------+
90-
|`lines.scale_dashes` | If the line dash patterns should scale with |
91-
| | linewidth |
90+
|`lines.scale_dashes` | Whether the line dash patterns should scale with |
91+
| | linewidth. |
92+
+---------------------------------+--------------------------------------------------+
93+
|`axes.formatter.offset_threshold`| Minimum number of digits saved in tick labels |
94+
| | that triggers using an offset. |
9295
+---------------------------------+--------------------------------------------------+
9396

9497

0 commit comments

Comments
 (0)