mpl_gui.select_gui_toolkit#
- mpl_gui.select_gui_toolkit(newbackend=None)[source]#
Select the GUI toolkit to use.
The argument is case-insensitive. Switching between GUI toolkits is possible only if no event loop for another interactive backend has started. Switching to and from non-interactive backends is always possible.
- Parameters:
- newbackendUnion[str, _Backend]
The name of the backend to use or a _Backend class to use.
- Returns:
- _Backend
The backend selected.