Skip to content

Commit

Permalink
FIx import for mpl 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Phlya committed May 31, 2024
1 parent 9765137 commit dc1fdd9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cooltools/lib/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dc1fdd9

Please sign in to comment.