matplotlib 3.5.1

ParametersRaisesBackRef
ticklabel_format(*, axis='both', style='', scilimits=None, useOffset=None, useLocale=None, useMathText=None)

If a parameter is not set, the corresponding property of the formatter is left unchanged.

Parameters

axis : {'x', 'y', 'both'}, default: 'both'

The axis to configure. Only major ticks are affected.

style : {'sci', 'scientific', 'plain'}

Whether to use scientific notation. The formatter default is to use scientific notation.

scilimits : pair of ints (m, n)

Scientific notation is used only for numbers outside the range 10\ m to 10\ n (and only if the formatter is configured to use scientific notation at all). Use (0, 0) to include all numbers. Use (m, m) where m != 0 to fix the order of magnitude to 10\ m . The formatter default is axes.formatter.limits .

useOffset : bool or float

If True, the offset is calculated as needed. If False, no offset is used. If a numeric value, it sets the offset. The formatter default is axes.formatter.useoffset .

useLocale : bool

Whether to format the number using the current locale or using the C (English) locale. This affects e.g. the decimal separator. The formatter default is axes.formatter.use_locale .

useMathText : bool

Render the offset and scientific notation in mathtext. The formatter default is axes.formatter.use_mathtext .

Raises

AttributeError

If the current formatter is not a .ScalarFormatter .

Configure the .ScalarFormatter used by default for linear axes.

Examples

See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

matplotlib.pyplot.plotting

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /matplotlib/pyplot.py#2937
type: <class 'function'>
Commit: