obspy.core.util.misc.MatplotlibBackend.switch_backend
- static MatplotlibBackend.switch_backend(backend, sloppy=True)[source]
Switch matplotlib backend.
- Parameters
backend (str) – Name of matplotlib backend to switch to.
sloppy (bool) – If
True
, only usesmatplotlib.pyplot.switch_backend()
and no warning will be shown if the backend was not switched successfully. IfFalse
, additionally tries to usematplotlib.use()
first and also shows a warning if the backend was not switched successfully.