__init__(self, positions, orientation='horizontal', lineoffset=0, linelength=1, linewidth=None, color=None, linestyle='solid', antialiased=None, **kwargs)
Each value is an event.
The sequence of events is plotted along this direction. The marker lines of the single events are along the orthogonal direction.
The offset of the center of the markers from the origin, in the direction orthogonal to orientation.
The total height of the marker (i.e. the marker stretches from lineoffset - linelength/2
to lineoffset + linelength/2
).
The line width of the event lines, in points.
The color of the event lines.
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.
Whether to use antialiasing for drawing the lines.
Forwarded to .LineCollection
.
.. plot:: gallery/lines_bars_and_markers/eventcollection_demo.pySee :
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