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 uses matplotlib.pyplot.switch_backend() and no warning will be shown if the backend was not switched successfully. If False, additionally tries to use matplotlib.use() first and also shows a warning if the backend was not switched successfully.