matplotlib 3.5.1

Parameters
__init__(self, segments, *args, zorder=2, **kwargs)

Parameters

segments : list of array-like

A sequence of (line0, line1, line2), where:

linen = (x0, y0), (x1, y1), ... (xm, ym)

or the equivalent numpy array with two columns. Each line can have a different number of segments.

linewidths : float or list of float, default: :rc:`lines.linewidth`

The width of each line in points.

colors : color or list of color, default: :rc:`lines.color`

A sequence of RGBA tuples (e.g., arbitrary color strings, etc, not allowed).

antialiaseds : bool or list of bool, default: :rc:`lines.antialiased`

Whether to use antialiasing for each line.

zorder : int, default: 2

zorder of the lines once drawn.

facecolors : color or list of color, default: 'none'

When setting facecolors, each line is interpreted as a boundary for an area, implicitly closing the path from the last point to the first point. The enclosed area is filled with facecolor. In order to manually specify what should count as the "interior" of each line, please use .PathCollection instead, where the "interior" can be specified by appropriate usage of :None:None:`~.path.Path.CLOSEPOLY`.

**kwargs :

Forwarded to .Collection .

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#1392
type: <class 'function'>
Commit: