matplotlib 3.5.1

Parameters
context(style, after_reset=False)

Parameters

style : str, dict, Path or list

A style specification. Valid options are:

+------+-------------------------------------------------------------+ | str | The name of a style or a path/URL to a style file. For a | | | list of available style names, see :None:None:`.style.available`. | +------+-------------------------------------------------------------+ | dict | Dictionary with valid key/value pairs for | | | :None:None:`matplotlib.rcParams`. | +------+-------------------------------------------------------------+ | Path | A path-like object which is a path to a style file. | +------+-------------------------------------------------------------+ | list | A list of style specifiers (str, Path or dict) applied from | | | first to last in the list. | +------+-------------------------------------------------------------+

after_reset : bool

If True, apply style after resetting settings to their defaults; otherwise, apply style on top of the current settings.

Context manager for using style settings temporarily.

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/style/core.py#136
type: <class 'function'>
Commit: