Skip to content

Commit

Permalink
Don't use deprecated cm.get_cmap in new matplotlib
Browse files Browse the repository at this point in the history
  • Loading branch information
benmwebb committed Feb 29, 2024
1 parent f423416 commit bfa36bd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/spatiotemporal/pyext/src/write_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
except ImportError:
Digraph = None
try:
from matplotlib import cm
try:
from matplotlib import colormaps as cm # matplotlib 3.7+
except ImportError:
from matplotlib import cm
from matplotlib import colors as clr
except ImportError:
cm = None
Expand Down

0 comments on commit bfa36bd

Please sign in to comment.