import matplotlib as _matplotlib
import matplotlib.pyplot as _matplotlib_pyplot
import time as _time # for timestamping lines on plots
-except ImportError, e:
+except (ImportError, RuntimeError), e:
_matplotlib = None
_matplotlib_import_error = e
import matplotlib as _matplotlib
import matplotlib.pyplot as _matplotlib_pyplot
import time as _time # for timestamping lines on plots
-except ImportError, e:
+except (ImportError, RuntimeError), e:
_matplotlib = None
_matplotlib_import_error = e
import matplotlib as _matplotlib
import matplotlib.pyplot as _matplotlib_pyplot
import time as _time # for timestamping lines on plots
-except ImportError, e:
+except (ImportError, RuntimeError), e:
_matplotlib = None
_matplotlib_import_error = e