matplotlib 3.5.1

__init__(self, patches, match_original=False, **kwargs)

match_original

If True, use the colors and linewidths of the original patches. If False, new colors may be assigned by providing the standard collection arguments, facecolor, edgecolor, linewidths, norm or cmap.

If any of edgecolors, facecolors, linewidths, antialiaseds are None, they default to their :None:None:`.rcParams` patch setting, in sequence form.

The use of ~matplotlib.cm.ScalarMappable functionality is optional. If the ~matplotlib.cm.ScalarMappable matrix _A has been set (via a call to ~.ScalarMappable.set_array ), at draw time a call to scalar mappable will be made to set the face colors.

patches

a sequence of Patch objects. This list may include a heterogeneous assortment of different patch types.

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