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

Skip to content

Commit a25d57c

Browse files
committed
ENH:made default tick formatter to switch to scientific notation earlier
The default tick formatter switches to scientific notation only for very small values, but there is a range of slightly bigger values where scientific notation would be better too. changed the formatter limits from -7,7 to -5,5 closes #14800
1 parent 9f1c730 commit a25d57c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/rcsetup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1145,7 +1145,7 @@ def _validate_linestyle(ls):
11451145
'axes.labelpad': [4.0, validate_float], # space between label and axis
11461146
'axes.labelweight': ['normal', validate_string], # fontsize of the x any y labels
11471147
'axes.labelcolor': ['black', validate_color], # color of axis label
1148-
'axes.formatter.limits': [[-7, 7], validate_nseq_int(2)],
1148+
'axes.formatter.limits': [[-5, 5], validate_nseq_int(2)],
11491149
# use scientific notation if log10
11501150
# of the axis range is smaller than the
11511151
# first or larger than the second

0 commit comments

Comments
 (0)