def METHOD_NAME(self):
    pt.activate_matplotlib = self._save_am
    pt.import_pylab = self._save_ip
    backend_inline.configure_inline_support = self._save_cis
    import matplotlib
    matplotlib.rcParams = self._saved_rcParams
    matplotlib.rcParamsOrig = self._saved_rcParamsOrig