diff --git a/python/damask/_colormap.py b/python/damask/_colormap.py index 0da9a564e..99332821d 100644 --- a/python/damask/_colormap.py +++ b/python/damask/_colormap.py @@ -195,7 +195,7 @@ class Colormap(mpl.colors.ListedColormap): return Image.fromarray( (np.dstack(( - self.colors[(np.round(np.clip((field-lo)/(hi-lo),0.0,1.0))*(N-1)).astype(np.uint16),:3], + self.colors[(np.round(np.clip((field-lo)/(hi-lo),0.0,1.0)*(N-1))).astype(np.uint16),:3], mask.astype(float) ) )*255 diff --git a/python/tests/reference/Colormap/shade_None.png b/python/tests/reference/Colormap/shade_None.png index 2289910ae..1fe460cb0 100644 Binary files a/python/tests/reference/Colormap/shade_None.png and b/python/tests/reference/Colormap/shade_None.png differ diff --git a/python/tests/reference/Colormap/shade_[2, 10].png b/python/tests/reference/Colormap/shade_[2, 10].png index 25c1cebb8..3fb795d83 100644 Binary files a/python/tests/reference/Colormap/shade_[2, 10].png and b/python/tests/reference/Colormap/shade_[2, 10].png differ