matplotlib 3.5.1

ParametersReturns
_process_unit_info(self, datasets=None, kwargs=None, *, convert=True)

Parameters

datasets : list

List of (axis_name, dataset) pairs (where the axis name is defined as in ._get_axis_map ). Individual datasets can also be None (which gets passed through).

kwargs : dict

Other parameters from which unit info (i.e., the xunits, yunits, zunits (for 3D axes), runits and thetaunits (for polar axes) entries) is popped, if present. Note that this dict is mutated in-place!

convert : bool, default: True

Whether to return the original datasets or the converted ones.

Returns

list

Either the original datasets if convert is False, or the converted ones if convert is True (the default).

Set axis units based on datasets and kwargs, and optionally apply unit conversions to datasets.

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/axes/_base.py#2482
type: <class 'function'>
Commit: