From a31e395b9f2a6ce300a9cf59114f69582199eb0a Mon Sep 17 00:00:00 2001 From: Michael Waskom Date: Mon, 29 Jul 2019 18:11:00 -0400 Subject: [PATCH] Set annotation LUT directly --- surfer/viz.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/surfer/viz.py b/surfer/viz.py index 14b921c..f76184f 100644 --- a/surfer/viz.py +++ b/surfer/viz.py @@ -3304,7 +3304,7 @@ def add_annotation(self, annot, ids, cmap): # Set the color table l_m = surf.module_manager.scalar_lut_manager - l_m.load_lut_from_list(cmap / 255.) + l_m.lut.table = np.round(cmap).astype(np.uint8) # Set the brain attributes return dict(surface=surf, name=annot, colormap=cmap, brain=self,