@@ -3229,7 +3229,7 @@ def grid(self, visible=None, which='major', axis='both', **kwargs):
32293229 if axis in ['y' , 'both' ]:
32303230 self .yaxis .grid (visible , which = which , ** kwargs )
32313231
3232- def ticklabel_format (self , * , axis = 'both' , style = '' , scilimits = None ,
3232+ def ticklabel_format (self , * , axis = 'both' , style = None , scilimits = None ,
32333233 useOffset = None , useLocale = None , useMathText = None ):
32343234 r"""
32353235 Configure the `.ScalarFormatter` used by default for linear Axes.
@@ -3245,6 +3245,7 @@ def ticklabel_format(self, *, axis='both', style='', scilimits=None,
32453245 style : {'sci', 'scientific', 'plain'}
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
@@ -3283,8 +3284,11 @@ def ticklabel_format(self, *, axis='both', style='', scilimits=None,
32833284 except (ValueError , TypeError ) as err :
32843285 raise ValueError ("scilimits must be a sequence of 2 integers"
32853286 ) 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 )
32883292 axis_map = {** {k : [v ] for k , v in self ._axis_map .items ()},
32893293 'both' : list (self ._axis_map .values ())}
32903294 axises = _api .check_getitem (axis_map , axis = axis )
0 commit comments