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

Skip to content

Commit 4c3355d

Browse files
committed
Reformatting pyplot.py and putting the sci equivalency in the docstring area.
1 parent c6fdf59 commit 4c3355d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3245,6 +3245,7 @@ def ticklabel_format(self, *, axis='both', style=None, scilimits=None,
32453245
style : {'sci', 'scientific', 'plain'} or None, default: None
32463246
Whether to use scientific notation.
32473247
The formatter default is to use scientific notation.
3248+
'sci' is equivalent to 'scientific'.
32483249
32493250
scilimits : pair of ints (m, n)
32503251
Scientific notation is used only for numbers outside the range
@@ -3285,7 +3286,6 @@ def ticklabel_format(self, *, axis='both', style=None, scilimits=None,
32853286
raise ValueError("scilimits must be a sequence of 2 integers"
32863287
) from err
32873288
STYLES = {'sci': True, 'scientific': True, 'plain': False, '': None, None: None}
3288-
# 'sci' is equivalent to 'scientific'.
32893289
# The '' option is included for backwards-compatibility.
32903290
is_sci_style = _api.check_getitem(STYLES, style=style)
32913291
axis_map = {**{k: [v] for k, v in self._axis_map.items()},

0 commit comments

Comments
 (0)