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 |
|
|
The mouse enters a figure |
|
|
The mouse leaves a figure |
|
|
The mouse enters an axes object |
|
|
The mouse leaves an axes object |
Note...