matplotlib.axes.Axes.ticklabel_format
-
Axes.ticklabel_format(**kwargs)
-
Change the
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. Only the major ticks are affected. If the method is called when the
ScalarFormatter
is not theFormatter
being used, anAttributeError
will be raised.
© 2012–2017 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
http://matplotlib.org/2.0.2/api/_as_gen/matplotlib.axes.Axes.ticklabel_format.html