matplotlib 3.5.1

ParametersReturns
nonsingular(vmin, vmax, expander=0.001, tiny=1e-15, increasing=True)

Parameters

vmin, vmax : float

The initial endpoints.

expander : float, default: 0.001

Fractional amount by which vmin and vmax are expanded if the original interval is too small, based on tiny.

tiny : float, default: 1e-15

Threshold for the ratio of the interval to the maximum absolute value of its endpoints. If the interval is smaller than this, it will be expanded. This value should be around 1e-15 or larger; otherwise the interval will be approaching the double precision resolution limit.

increasing : bool, default: True

If True, swap vmin, vmax if vmin > vmax.

Returns

vmin, vmax : float

Endpoints, expanded and/or swapped if necessary. If either input is inf or NaN, or if both inputs are 0 or very close to zero, it returns -expander, expander.

Modify the endpoints of a range as needed to avoid singularities.

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