@@ -3222,7 +3222,7 @@ def grid(self, visible=None, which='major', axis='both', **kwargs):
32223222if axis in ['y' ,'both' ]:
32233223self .yaxis .grid (visible ,which = which ,** kwargs )
32243224
3225- def ticklabel_format (self ,* ,axis = 'both' ,style = '' ,scilimits = None ,
3225+ def ticklabel_format (self ,* ,axis = 'both' ,style = None ,scilimits = None ,
32263226useOffset = None ,useLocale = None ,useMathText = None ):
32273227r"""
32283228 Configure the `.ScalarFormatter` used by default for linear Axes.
@@ -3238,6 +3238,7 @@ def ticklabel_format(self, *, axis='both', style='', scilimits=None,
32383238 style : {'sci', 'scientific', 'plain'}
32393239 Whether to use scientific notation.
32403240 The formatter default is to use scientific notation.
3241+ 'sci' is equivalent to 'scientific'.
32413242
32423243 scilimits : pair of ints (m, n)
32433244 Scientific notation is used only for numbers outside the range
@@ -3267,7 +3268,8 @@ def ticklabel_format(self, *, axis='both', style='', scilimits=None,
32673268 AttributeError
32683269 If the current formatter is not a `.ScalarFormatter`.
32693270 """
3270- style = style .lower ()
3271+ if isinstance (style ,str ):
3272+ style = style .lower ()
32713273axis = axis .lower ()
32723274if scilimits is not None :
32733275try :
@@ -3276,7 +3278,8 @@ def ticklabel_format(self, *, axis='both', style='', scilimits=None,
32763278except (ValueError ,TypeError )as err :
32773279raise ValueError ("scilimits must be a sequence of 2 integers"
32783280 )from err
3279- STYLES = {'sci' :True ,'scientific' :True ,'plain' :False ,'' :None }
3281+ STYLES = {'sci' :True ,'scientific' :True ,'plain' :False ,'' :None ,None :None }
3282+ # The '' option is included for backwards-compatibility.
32803283is_sci_style = _api .check_getitem (STYLES ,style = style )
32813284axis_map = {** {k : [v ]for k ,v in self ._axis_map .items ()},
32823285'both' :list (self ._axis_map .values ())}