Skip to content

Commit

Permalink
fixed get_cmap dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
paolchol committed Aug 24, 2023
1 parent 70e1a22 commit e18b1aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion localtileserver/tiler/palettes.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def is_mpl_cmap(name: str):
try:
import matplotlib

matplotlib.colormaps.get_cmap(name)
matplotlib.cm.get_cmap(name)
return True
except ImportError: # pragma: no cover
logger.error("Install matplotlib for additional colormap choices.")
Expand Down

0 comments on commit e18b1aa

Please sign in to comment.