From a162d548ed2280db861dfed628c117e4d7b73a25 Mon Sep 17 00:00:00 2001 From: lynnschmittwilken Date: Thu, 16 Feb 2023 14:37:34 +0100 Subject: [PATCH] changed handling of colors for masks with many indices --- stimuli/utils/plotting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stimuli/utils/plotting.py b/stimuli/utils/plotting.py index 4be705c4..549bbad4 100644 --- a/stimuli/utils/plotting.py +++ b/stimuli/utils/plotting.py @@ -58,7 +58,7 @@ def plot_stim( colormap = plt.cm.tab10 for idx in np.unique(mask)[np.unique(mask) > 0]: - color = colormap.colors[idx % 10] + color = colormap.colors[idx % 19] color = np.reshape(color, (1, 1, 3)) img = np.where(mask == idx, color, img) ax.imshow(img)