An event handler for Matplotlib-based visualizations that executes functions registered with MPLVisualization.addKeypress()
and routes other events to the appropriate ChartPlot
object depending on the current mouse position, which are received by ChartPlot.MPLEvent()
. This function should not be called directly by user code.
sendEvent()
currently routes key_press_event
(keystrokes), button_press_event
(mouse clicks), and pick_event
(mouse clicks associated with particular pickable Artist
s).
WARNING: This is an internal function. Its use in user code is not recommended or supported, and its signature can change in future updates without warning. Use one of the suggested functions above instead, if applicable.
Parameters
event — matplotlib.KeyEvent, required
The Matplotlib event object corresponding to the keypress.
Notes and Examples