mne.viz.ui_events.unsubscribe(fig, event_names, callback=None, *, verbose=None)[source]#

Unsubscribe from an event on a figure’s event channel.

figmatplotlib.figure.Figure | Figure3D

The figure of which event channel to unsubscribe from.

event_namesstr | list of str

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.

callbackcallable() | 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 and mne.verbose() for details. Should only be passed as a keyword argument.