matplotlib 3.5.1

Parameters
__init__(self, positions, orientation='horizontal', lineoffset=0, linelength=1, linewidth=None, color=None, linestyle='solid', antialiased=None, **kwargs)

Parameters

positions : 1D array-like

Each value is an event.

orientation : {'horizontal', 'vertical'}, default: 'horizontal'

The sequence of events is plotted along this direction. The marker lines of the single events are along the orthogonal direction.

lineoffset : float, default: 0

The offset of the center of the markers from the origin, in the direction orthogonal to orientation.

linelength : float, default: 1

The total height of the marker (i.e. the marker stretches from lineoffset - linelength/2 to lineoffset + linelength/2 ).

linewidth : float or list thereof, default: :rc:`lines.linewidth`

The line width of the event lines, in points.

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

The color of the event lines.

linestyle : str or tuple or list thereof, default: 'solid'

Valid strings are ['solid', 'dashed', 'dashdot', 'dotted', '-', '--', '-.', '']. Dash tuples should be of the form:

(offset, onoffseq),

where onoffseq is an even length tuple of on and off ink in points.

antialiased : bool or list thereof, default: :rc:`lines.antialiased`

Whether to use antialiasing for drawing the lines.

**kwargs :

Forwarded to .LineCollection .

Examples

.. plot:: gallery/lines_bars_and_markers/eventcollection_demo.py
    
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#1531
type: <class 'function'>
Commit: