Set the pyplot backend.
Switching to an interactive backend is possible only if no event loop for another interactive backend has started. Switching to and from non-interactive backends is always possible.
If the new backend is different than the current backend then all open Figures will be closed via
The case-insensitive name of the backend to use.