Skip to content

Commit

Permalink
chore: update register_cmap to register
Browse files Browse the repository at this point in the history
  • Loading branch information
chansigit committed Jul 5, 2024
1 parent facac04 commit 6b8840c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dynamo/plot/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def calculate_colors(

with warnings.catch_warnings():
warnings.simplefilter("ignore")
matplotlib.cm.register_cmap(name=cmap_.name, cmap=cmap_, override_builtin=True)
matplotlib.colormaps.register(name=cmap_.name, cmap=cmap_, override_builtin=True)

if values.shape[0] != points.shape[0]:
raise ValueError(
Expand Down Expand Up @@ -633,7 +633,7 @@ def _matplotlib_points(

with warnings.catch_warnings():
warnings.simplefilter("ignore")
matplotlib.cm.register_cmap(name=cmap_.name, cmap=cmap_, override_builtin=True)
matplotlib.colormaps.register(name=cmap_.name, cmap=cmap_, override_builtin=True)

if values.shape[0] != points.shape[0]:
raise ValueError(
Expand Down

0 comments on commit 6b8840c

Please sign in to comment.