Skip to content

Commit

Permalink
Merge pull request #27 from MPI-Dortmund/label-layer-visible
Browse files Browse the repository at this point in the history
make label layer visible
  • Loading branch information
thorstenwagner authored Dec 21, 2023
2 parents 6e1b698 + dde8195 commit e6d3e13
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 e6d3e13

Please sign in to comment.