Skip to content

Commit

Permalink
make label layer visible
Browse files Browse the repository at this point in the history
  • Loading branch information
thorstenwagner committed Dec 21, 2023
1 parent 6e1b698 commit dde8195
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/napari_tomotwin/load_umap.py
Original file line number Diff line number Diff line change
Expand Up @@ -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[
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit dde8195

Please sign in to comment.