matplotlib 3.5.1

AttributesBackRef

Attributes

x, y : int or None

Event location in pixels from bottom left of canvas.

inaxes : `~.axes.Axes` or None

The :None:None:`~.axes.Axes` instance over which the mouse is, if any.

xdata, ydata : float or None

Data coordinates of the mouse within inaxes, or None if the mouse is not over an Axes.

A LocationEvent has a number of special attributes in addition to those defined by the parent Event class.

An event that has a screen location.

Examples

See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

matplotlib.backend_bases.KeyEvent matplotlib.backend_bases.MouseEvent

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/backend_bases.py#1283
type: <class 'type'>
Commit: