From 14e99d66fae37925d7039673171bb5bc0d069353 Mon Sep 17 00:00:00 2001 From: Patrick Date: Wed, 13 Nov 2024 13:21:40 +0100 Subject: [PATCH] fix small mistake --- tripyview/sub_colormap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tripyview/sub_colormap.py b/tripyview/sub_colormap.py index 231366e..a03cd8e 100644 --- a/tripyview/sub_colormap.py +++ b/tripyview/sub_colormap.py @@ -139,7 +139,7 @@ def colormap_c2c(cmin, cmax, cref, cnumb, cname, cstep=None, do_slog=False, #___________________________________________________________________________ # if the cmap_arr is not already predifined from the outside - if cmap_arr is not None: + if cmap_arr is None: if 'matplotlib' in cname: dum, cstr = cname.rsplit('.') if '_i' in cname: cstr, dum = cstr.rsplit('_i')