@@ -3229,7 +3229,7 @@ def grid(self, visible=None, which='major', axis='both', **kwargs):
3229
3229
if axis in ['y' , 'both' ]:
3230
3230
self .yaxis .grid (visible , which = which , ** kwargs )
3231
3231
3232
- def ticklabel_format (self , * , axis = 'both' , style = '' , scilimits = None ,
3232
+ def ticklabel_format (self , * , axis = 'both' , style = None , scilimits = None ,
3233
3233
useOffset = None , useLocale = None , useMathText = None ):
3234
3234
r"""
3235
3235
Configure the `.ScalarFormatter` used by default for linear Axes.
@@ -3245,6 +3245,7 @@ def ticklabel_format(self, *, axis='both', style='', scilimits=None,
3245
3245
style : {'sci', 'scientific', 'plain'}
3246
3246
Whether to use scientific notation.
3247
3247
The formatter default is to use scientific notation.
3248
+ Sci is equivalent to scientific.
3248
3249
3249
3250
scilimits : pair of ints (m, n)
3250
3251
Scientific notation is used only for numbers outside the range
@@ -3283,8 +3284,11 @@ def ticklabel_format(self, *, axis='both', style='', scilimits=None,
3283
3284
except (ValueError , TypeError ) as err :
3284
3285
raise ValueError ("scilimits must be a sequence of 2 integers"
3285
3286
) from err
3286
- STYLES = {'sci' : True , 'scientific' : True , 'plain' : False , '' : None }
3287
- is_sci_style = _api .check_getitem (STYLES , style = style )
3287
+ STYLES = {'sci' : True , 'scientific' : True , 'plain' : False }
3288
+ if style == None :
3289
+ is_sci_style = False
3290
+ else :
3291
+ is_sci_style = _api .check_getitem (STYLES , style = style )
3288
3292
axis_map = {** {k : [v ] for k , v in self ._axis_map .items ()},
3289
3293
'both' : list (self ._axis_map .values ())}
3290
3294
axises = _api .check_getitem (axis_map , axis = axis )
0 commit comments