diff --git a/cooltools/lib/plotting.py b/cooltools/lib/plotting.py index f09841ee..e75ccf7a 100644 --- a/cooltools/lib/plotting.py +++ b/cooltools/lib/plotting.py @@ -2,7 +2,11 @@ Migrated from :mod:`mirnylib.plotting`. """ -from matplotlib.cm import register_cmap +try: + from matplotlib.cm import register_cmap +except ImportError: + from matplotlib.colormaps import register + import matplotlib as mpl import matplotlib.pyplot as plt import numpy as np