Skip to content

Commit

Permalink
improve examples/add_points_on_nD_shapes.py camera/dims setup (napari…
Browse files Browse the repository at this point in the history
  • Loading branch information
alisterburt authored Mar 1, 2022
1 parent c76b1f8 commit 34123a2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/add_points_on_nD_shapes.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ def on_click(layer, event):
points_layer.add(intersection_point)


# set the viewer to 3D rendering mode
# set the viewer to 3D rendering mode with the first two rectangles in view
viewer.dims.ndisplay = 3
viewer.dims.set_point(axis=0, value=0)
viewer.camera.angles = (70, 30, 150)
viewer.camera.zoom = 2.5
napari.run()

0 comments on commit 34123a2

Please sign in to comment.