matplotlib 3.5.1

Parameters
__init__(self, unit='', places=None, sep=' ', *, usetex=None, useMathText=None)

Parameters

unit : str, default: ""

Unit symbol to use, suitable for use with single-letter representations of powers of 1000. For example, 'Hz' or 'm'.

places : int, default: None

Precision with which to display the number, specified in digits after the decimal point (there will be between one and three digits before the decimal point). If it is None, the formatting falls back to the floating point format '%g', which displays up to 6 significant digits, i.e. the equivalent value for places varies between 0 and 5 (inclusive).

sep : str, default: " "

Separator used between the value and the prefix/unit. For example, one get '3.14 mV' if sep is " " (default) and '3.14mV' if sep is "". Besides the default behavior, some other useful options may be:

  • sep="" to append directly the prefix/unit to the value;

  • sep="\N{THIN SPACE}" ( U+2009 );

  • sep="\N{NARROW NO-BREAK SPACE}" ( U+202F );

  • sep="\N{NO-BREAK SPACE}" ( U+00A0 ).

usetex : bool, default: :rc:`text.usetex`

To enable/disable the use of TeX's math mode for rendering the numbers in the formatter.

useMathText : bool, default: :rc:`axes.formatter.use_mathtext`

To enable/disable the use mathtext for rendering the numbers in the formatter.

Examples

See :

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/ticker.py#1338
type: <class 'function'>
Commit: