Skip to content

Commit

Permalink
Solve the problem of colormap registration error, rename from 'pyart_…
Browse files Browse the repository at this point in the history
…' to 'copy_pyart_'
  • Loading branch information
YvZheng committed Feb 9, 2023
1 parent 2988100 commit be35ac8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pycwr/draw/colormap/cm.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def _generate_cmap(name, lutsize):
if name in ["ref", "vel"]:
matplotlib.cm.register_cmap(name="CN_"+name, cmap=cmap)
else:
full_name = 'pyart_' + name
full_name = 'copy_pyart_' + name
matplotlib.cm.register_cmap(name=full_name, cmap=cmap)

hid_colors = ['LightBlue', 'MediumBlue', 'DarkOrange', 'LightPink',
Expand Down
2 changes: 1 addition & 1 deletion pycwr/draw/colormap/cm_colorblind.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,5 @@ def _generate_cmap(name, lutsize):

# register the colormaps so that can be accessed with the names pyart_XXX
for name, cmap in cmap_d.items():
full_name = 'pyart_' + name
full_name = 'copy_pyart_' + name
mpl.cm.register_cmap(name=full_name, cmap=cmap)

0 comments on commit be35ac8

Please sign in to comment.