An event handling method that can be overridden in subclasses to catch pick (
pick_event), keypress (
key_press_event), and mouse click (
button_press_event) events that occur inside a particular plot. This is distinct from functions passed to
MPLVisualization.addKeypress(), as those will run for keys pressed any time the visualization window is in focus, regardless of the mouse position.
This function should not be called by user code, but it may be defined in subclasses of
event.canvas.draw_idle() should be called at the end if the plot needs to be refreshed following the event. See the Matplotlib events documentation for more on interacting with the
event — matplotlib.Event, required