From 1ee7053a49d180a8c2fc0310577f0be7a2e499db Mon Sep 17 00:00:00 2001 From: Sintel Date: Thu, 13 Oct 2022 13:39:40 +0200 Subject: [PATCH] fix color normalization --- meshplot/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshplot/utils.py b/meshplot/utils.py index 91867f2..4cd38f0 100644 --- a/meshplot/utils.py +++ b/meshplot/utils.py @@ -5,7 +5,7 @@ # Helper functions def get_colors(inp, colormap="viridis", normalize=True, vmin=None, vmax=None): colormap = plt.cm.get_cmap(colormap) - if normalize: + if not normalize: vmin=np.min(inp) vmax=np.max(inp)