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

Close Event

Close Event
Mouse move and click events

Mouse move and click events

Mouse move and click events
Cross hair cursor

Cross hair cursor

Cross hair cursor
Data Browser

Data Browser

Data Browser
Figure/Axes enter and leave events

Figure/Axes enter and leave events

Figure/Axes enter and leave events
Interactive functions

Interactive functions

Interactive functions
Image Slices Viewer

Image Slices Viewer

Image Slices Viewer
Keypress event

Keypress event

Keypress event
Lasso Demo

Lasso Demo

Lasso Demo
Legend Picking

Legend Picking

Legend Picking
Looking Glass

Looking Glass

Looking Glass
Path Editor

Path Editor

Path Editor
Pick Event Demo

Pick Event Demo

Pick Event Demo
Pick Event Demo2

Pick Event Demo2

Pick Event Demo2
Poly Editor

Poly Editor

Poly Editor
Pong

Pong

Pong
Resampling Data

Resampling Data

Resampling Data
Timers

Timers

Timers
Trifinder Event Demo

Trifinder Event Demo

Trifinder Event Demo
Viewlims

Viewlims

Viewlims
Zoom Window

Zoom Window

Zoom Window