matplotlib.blocking_input¶This provides several classes used for blocking interaction with figure windows:
BlockingInputBlockingKeyMouseInputwaitforbuttonpress.BlockingMouseInputginput.BlockingContourLabelerContourSet. Used by clabel.matplotlib.blocking_input.BlockingContourLabeler(cs)[source]¶Bases: matplotlib.blocking_input.BlockingMouseInput
Callable for retrieving mouse clicks and key presses in a blocking way.
Used to place contour labels.
Process an button-1 event (add a label to a contour).
Process an button-3 event (remove a label if not in inline mode).
Unfortunately, if one is doing inline labels, then there is currently no way to fix the broken contour - once humpty-dumpty is broken, he can't be put back together. In inline mode, this does nothing.
matplotlib.blocking_input.BlockingInput(fig, eventslist=())[source]¶Bases: object
Callable for retrieving events in a blocking way.
pop(index=-1)¶Remove an event from the event list -- by default, the last.
Note that this does not check that there are events, much like the normal pop method. If no events exist, this will throw an exception.
matplotlib.blocking_input.BlockingKeyMouseInput(fig)[source]¶Bases: matplotlib.blocking_input.BlockingInput
Callable for retrieving mouse clicks and key presses in a blocking way.
matplotlib.blocking_input.BlockingMouseInput(fig, mouse_add=1, mouse_pop=3, mouse_stop=2)[source]¶Bases: matplotlib.blocking_input.BlockingInput
Callable for retrieving mouse clicks in a blocking way.
This class will also retrieve keypresses and map them to mouse clicks: delete and backspace are like mouse button 3, enter is like mouse button 2 and all others are like mouse button 1.