Event handling
We now have a good background for some practical work with matplotlib events. We are now ready to explore the nitty-gritty. Let's begin with the list of events that matplotlib supports:
Event name |
Class |
Description |
---|---|---|
|
|
The mouse button is pressed |
|
|
The mouse button is released |
|
|
The canvas draw occurs |
|
|
A key is pressed |
|
|
A key is released |
|
|
Motion of the mouse |
|
|
An object in the canvas is selected |
|
|
The figure canvas is resized |
|
|
The scroll wheel of the mouse is rolled |
|
Get Mastering matplotlib now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.