[ Web Proxy ]
URL:
Viewing: https://matplotlib.org/stable/api/_as_gen/../../gallery/scales/../misc/../event_handling/index.html [Back]  [Original]

Event handling — Matplotlib 3.11.2 documentation
Back to top
Search the docs ...:

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
[]

Mouse move and click events

Mouse move and click events
[]

Cross-hair cursor

Cross-hair cursor
[]

Data browser

Data browser
[]

Figure/Axes enter and leave events

Figure/Axes enter and leave events
[]

Interactive functions

Interactive functions
[]

Scroll event

Scroll event
[]

Keypress event

Keypress event
[]

Lasso Demo

Lasso Demo
[]

Legend picking

Legend picking
[]

Looking glass

Looking glass
[]

Path editor

Path editor
[]

Pick event demo

Pick event demo
[]

Pick event demo 2

Pick event demo 2
[]

Polygon editor

Polygon editor
[]

Pong

Pong
[]

Resampling Data

Resampling Data
[]

Timers

Timers
[]

Trifinder Event Demo

Trifinder Event Demo
[]

Viewlims

Viewlims
[]

Zoom modifies other Axes

Zoom modifies other Axes

Web Proxy Viewer  |  New URL  |  Original Page