Skip to content

Commit c047b00

Browse files
committed
finish cmap bugs
1 parent c70fbfe commit c047b00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

brainspace/plotting/surface_plotting.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def build_plotter(surfs, layout, array_name=None, view=None, color_bar=None,
284284

285285
cm = cmap[i, j][ia]
286286
if cm is not None:
287-
if cm in colormaps:
287+
if isinstance(cm, str) and cm in colormaps:
288288
table = colormaps[cm]
289289
else:
290290
cm = plt.get_cmap(cm)

0 commit comments

Comments
 (0)