Commit f03f297f authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Merge branch '470-matplotlib-deprecation-warning' into 'master'

Resolve "Matplotlib deprecation warning"

Closes #470

See merge request !760
parents 0140d1e7 c9bd9a43
Pipeline #120824 passed with stages
in 8 minutes and 24 seconds
......@@ -15,6 +15,7 @@ from importlib import import_module
import json
import warnings
from distutils.version import StrictVersion
import numpy as np
from scipy.interpolate import interp2d
from scipy.special import logsumexp
......@@ -965,7 +966,10 @@ else:
for backend in non_gui_backends:
logger.debug("Trying backend {}".format(backend))
matplotlib.use(backend, warn=False)
if StrictVersion(matplotlib.__version__) >= StrictVersion("3.1"):
matplotlib.use(backend, warn=False)
except Exception:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment