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

Skip to content

Commit c6fdf59

Browse files
committed
Changing comments from the docstring area to inline comments.
1 parent 2096ae7 commit c6fdf59

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3242,11 +3242,9 @@ def ticklabel_format(self, *, axis='both', style=None, scilimits=None,
32423242
axis : {'x', 'y', 'both'}, default: 'both'
32433243
The axis to configure. Only major ticks are affected.
32443244
3245-
style : {'sci', 'scientific', 'plain', '', None}, default: None
3245+
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.
3249-
The '' option is included solely for backwards-compatibility.
32503248
32513249
scilimits : pair of ints (m, n)
32523250
Scientific notation is used only for numbers outside the range
@@ -3287,6 +3285,8 @@ def ticklabel_format(self, *, axis='both', style=None, scilimits=None,
32873285
raise ValueError("scilimits must be a sequence of 2 integers"
32883286
) from err
32893287
STYLES = {'sci': True, 'scientific': True, 'plain': False, '': None, None: None}
3288+
# 'sci' is equivalent to 'scientific'.
3289+
# 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()},
32923292
'both': list(self._axis_map.values())}

0 commit comments

Comments
 (0)