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):