'Change the `~matplotlib.ticker.ScalarFormatter` used by
default for linear axes.
Optional keyword arguments:
Keyword          Description
*style*          [ \'sci\' (or \'scientific\') | \'plain\' ]
plain turns off scientific notation
*scilimits*      (m, n), pair of integers; if *style*
is \'sci\', scientific notation will
be used for numbers outside the range
10`m`:sup: to 10`n`:sup:.
Use (0,0) to include all numbers.
*useOffset*      [True | False | offset]; if True,
the offset will be calculated as needed;
if False, no offset will be used; if a
numeric offset is specified, it will be
used.
*axis*           [ \'x\' | \'y\' | \'both\' ]
*useLocale*      If True, format the number according to
the current locale.  This affects things
such as the character used for the
decimal separator.  If False, use
C-style (English) formatting.  The
default setting is controlled by the
axes.formatter.use_locale rcparam.
*useMathText*    If True, render the offset and scientific
notation in mathtext
Only the major ticks are affected.
If the method is called when the
:class:`~matplotlib.ticker.ScalarFormatter` is not the
:class:`~matplotlib.ticker.Formatter` being used, an
:exc:`AttributeError` will be raised.'

def ticklabel_format(self, **kwargs):

    style = kwargs.pop(u'style', u'').lower()
    scilimits = kwargs.pop(u'scilimits', None)
    useOffset = kwargs.pop(u'useOffset', None)
    useLocale = kwargs.pop(u'useLocale', None)
    useMathText = kwargs.pop(u'useMathText', None)
    axis = kwargs.pop(u'axis', u'both').lower()
    if (scilimits is not None):
        try:
            (m, n) = scilimits
            ((m + n) + 1)
        except (ValueError, TypeError):
            raise ValueError(u'scilimits    must    be    a    sequence    of    2    integers')
    if (style[:3] == u'sci'):
        sb = True
    elif (style == u'plain'):
        sb = False
    elif (style == u'comma'):
        raise NotImplementedError(u'comma    style    remains    to    be    added')
    elif (style == u''):
        sb = None
    else:
        raise ValueError(u'%s    is    not    a    valid    style    value')
    try:
        if (sb is not None):
            if ((axis == u'both') or (axis == u'x')):
                self.xaxis.major.formatter.set_scientific(sb)
            if ((axis == u'both') or (axis == u'y')):
                self.yaxis.major.formatter.set_scientific(sb)
        if (scilimits is not None):
            if ((axis == u'both') or (axis == u'x')):
                self.xaxis.major.formatter.set_powerlimits(scilimits)
            if ((axis == u'both') or (axis == u'y')):
                self.yaxis.major.formatter.set_powerlimits(scilimits)
        if (useOffset is not None):
            if ((axis == u'both') or (axis == u'x')):
                self.xaxis.major.formatter.set_useOffset(useOffset)
            if ((axis == u'both') or (axis == u'y')):
                self.yaxis.major.formatter.set_useOffset(useOffset)
        if (useLocale is not None):
            if ((axis == u'both') or (axis == u'x')):
                self.xaxis.major.formatter.set_useLocale(useLocale)
            if ((axis == u'both') or (axis == u'y')):
                self.yaxis.major.formatter.set_useLocale(useLocale)
        if (useMathText is not None):
            if ((axis == u'both') or (axis == u'x')):
                self.xaxis.major.formatter.set_useMathText(useMathText)
            if ((axis == u'both') or (axis == u'y')):
                self.yaxis.major.formatter.set_useMathText(useMathText)
    except AttributeError:
        raise AttributeError(u'This    method    only    works    with    the    ScalarFormatter.')
