Event handling#
Matplotlib supports event handling with a GUI neutral event model, so you can connect to Matplotlib events without knowledge of what user interface Matplotlib will ultimately be plugged in to. This has two advantages: the code you write will be more portable, and Matplotlib events are aware of things like data coordinate space and which axes the event occurs in so you don't have to mess with low level transformation details to go from canvas space to data space. Object picking examples are also included.
Close Event
Mouse move and click events
Cross-hair cursor
Data browser
Figure/Axes enter and leave events
Figure/Axes enter and leave events
Interactive functions
Scroll event
Keypress event
Lasso Demo
Legend picking
Looking Glass
Path editor
Pick event demo
Pick event demo 2
Poly Editor
Pong
Resampling Data
Timers
Trifinder Event Demo
Viewlims
Zoom Window