Skip to content

Commit

Permalink
Small fix to register inverted and reveresed cmaps properly
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-s28 committed Mar 5, 2024
1 parent 953b7da commit 12cd24e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmocean/cm.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ def _register_cmap(cmap, *, name):

# order shouldn't matter
cmap_d[cmapname + '_i_r'] = cmap_d[cmapname + '_r_i']
_register_cmap(reg_map_r_i, name=f'cmo.{cmapname}_i_r')

# make colormaps available to call
locals().update(cmap_d)

0 comments on commit 12cd24e

Please sign in to comment.