Skip to content

Commit

Permalink
Zoom in to show points better and trigger keybind function manually
Browse files Browse the repository at this point in the history
  • Loading branch information
psobolewskiPhD committed Apr 26, 2024
1 parent 64a5333 commit 404a7a6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions napari-workshops/notebooks/spot_detection_functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,10 @@ detect_spots(viewer.layers['spots'])
```{code-cell} ipython3
# lets set the dropdown value for the screenshot
detect_spots.image.value = viewer.layers['spots']
# and lets zoom in a bit
viewer.camera.center = (200, 270)
viewer.camera.zoom = 8
nbscreenshot(viewer)
```

Expand Down Expand Up @@ -378,7 +382,10 @@ def print_number_of_points(points_layer: "napari.layers.Points"):
```

Let's call the function to trigger it for the notebook:
```{code-cell} ipython3
print_number_of_points(viewer.layers['Points'])
nbscreenshot(viewer)
```

Expand Down

0 comments on commit 404a7a6

Please sign in to comment.