mne.viz.ui_events.unsubscribe#
- mne.viz.ui_events.unsubscribe(fig, event_names, callback=None, *, verbose=None)[source]#
Unsubscribe from an event on a figure’s event channel.
- Parameters:
- fig
matplotlib.figure.Figure
|Figure3D
The figure of which event channel to unsubscribe from.
- event_names
str
|list
ofstr
Select which events to stop subscribing to. Can be a single string event name, a list of event names or
"all"
which will unsubscribe from all events.- callback
callable()
|None
The callback function that should be unsubscribed, leaving all other callback functions that may be subscribed untouched. By default (
None
) all callback functions are unsubscribed from the event.- verbosebool |
str
|int
|None
Control verbosity of the logging output. If
None
, use the default verbosity level. See the logging documentation andmne.verbose()
for details. Should only be passed as a keyword argument.
- fig