Event handling#
Matplotlib supportsevent handling witha GUI neutral event model, so you can connect to Matplotlib events withoutknowledge of what user interface Matplotlib will ultimately be plugged in to.This has two advantages: the code you write will be more portable, andMatplotlib events are aware of things like data coordinate space and whichaxes the event occurs in so you don't have to mess with low leveltransformation details to go from canvas space to data space. Object pickingexamples are also included.