From dde81956323ea2d68612b6bec84faf5e306d88ca Mon Sep 17 00:00:00 2001 From: thorstenwagner Date: Thu, 21 Dec 2023 15:29:17 +0100 Subject: [PATCH] make label layer visible --- src/napari_tomotwin/load_umap.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/napari_tomotwin/load_umap.py b/src/napari_tomotwin/load_umap.py index 1c9c315..d093d13 100644 --- a/src/napari_tomotwin/load_umap.py +++ b/src/napari_tomotwin/load_umap.py @@ -28,6 +28,7 @@ def _draw_circle(self, data_coordinates, label_layer, umap): ''' Adds a circle on the umap when you click on the image ''' + label_layer.visible = True val = label_layer._get_value(data_coordinates) umap_coordinates = umap.loc[ @@ -75,8 +76,8 @@ def show_umap(self, label_layer): #label_layer = self.viewer.add_labels(lbl_data, name='Label layer', features=self.umap, properties=self.umap) - label_layer.opacity = 0.5 - label_layer.visible = False + label_layer.opacity = 0 + label_layer.visible = True @self.viewer.mouse_drag_callbacks.append def get_event(viewer, event):