From 12cd24eb33445a835e424e73ecc07912beb68608 Mon Sep 17 00:00:00 2001 From: andrew-s28 Date: Mon, 4 Mar 2024 17:14:48 -0800 Subject: [PATCH] Small fix to register inverted and reveresed cmaps properly --- cmocean/cm.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cmocean/cm.py b/cmocean/cm.py index 43f3626..7ffe563 100644 --- a/cmocean/cm.py +++ b/cmocean/cm.py @@ -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)