Examples#

Examples of napari usage.

All examples in this gallery can be downloaded as Python scripts or Jupyter notebooks to be executed locally. Check out Jupyter notebook usage for more details on using napari in Jupyter notebooks.

Note

If you want to submit a new example to this gallery, check out our contribution guide!

3D Layer Bounding Box Overlay

3D Layer Bounding Box Overlay

3D Paths

3D Paths

3D image plane rendering

3D image plane rendering

Action manager

Action manager

Add 3D image

Add 3D image

Add grayscale image

Add grayscale image

Add image

Add image

Add image transformed

Add image transformed

Add labels

Add labels

Add labels with features

Add labels with features

Add multiscale image

Add multiscale image

Add points

Add points

Add points 3D

Add points 3D

Add points on nD shapes

Add points on nD shapes

Add points with features

Add points with features

Add points with multicolor text

Add points with multicolor text

Add points with text

Add points with text

Add shapes

Add shapes

Add shapes with features

Add shapes with features

Add shapes with text

Add shapes with text

Add surface 2D

Add surface 2D

Add vectors

Add vectors

Add vectors color by angle

Add vectors color by angle

Add vectors image

Add vectors image

Affine transforms

Affine transforms

Annotate 2D

Annotate 2D

Annotate segmentation with text

Annotate segmentation with text

Comparison of Screenshot and Figure Export

Comparison of Screenshot and Figure Export

Concentric spheres

Concentric spheres

Cursor position

Cursor position

Cursor ray

Cursor ray

Custom image interpolation kernels

Custom image interpolation kernels

Custom key bindings

Custom key bindings

Custom mouse functions

Custom mouse functions

Dask nD image

Dask nD image

Dynamic projections dask

Dynamic projections dask

Export Figure

Export Figure

Export regions of interest (ROIs) to png

Export regions of interest (ROIs) to png

Fourier transform playground

Fourier transform playground

Get current viewer

Get current viewer

Image depth

Image depth

Image points 3D

Image points 3D

Interaction box image

Interaction box image

Interactive move rectangle

Interactive move rectangle

Interactive scripting

Interactive scripting

Labels 2D

Labels 2D

Labels 3D

Labels 3D

Layer Bounding Box (Border) Overlay

Layer Bounding Box (Border) Overlay

Layers

Layers

Linked layers

Linked layers

Method to get napari style in magicgui based windows

Method to get napari style in magicgui based windows

Minimum blending

Minimum blending

Mixed dimensions labels

Mixed dimensions labels

Mouse drag callback

Mouse drag callback

Multiple viewer widget

Multiple viewer widget

Multiple viewers

Multiple viewers

New theme

New theme

Paint nD

Paint nD

Pass colormaps

Pass colormaps

Point cloud

Point cloud

Points over time

Points over time

Reader plugin

Reader plugin

Scale bar

Scale bar

Set colormaps

Set colormaps

Set theme

Set theme

Shapes to labels

Shapes to labels

Show points based on feature

Show points based on feature

Spherical points

Spherical points

Surface normals wireframe

Surface normals wireframe

Surface with multiple textures

Surface with multiple textures

Surface with texture and vertex_colors

Surface with texture and vertex_colors

Swap dims

Swap dims

To screenshot

To screenshot

Tracks 2D

Tracks 2D

Tracks 3D

Tracks 3D

Tracks 3D with graph

Tracks 3D with graph

Update console

Update console

Viewer FPS label

Viewer FPS label

Visualizing optical flow in napari

Visualizing optical flow in napari

bbox annotator

bbox annotator

magicgui Image Arithmetic

magicgui Image Arithmetic

magicgui parameter sweep

magicgui parameter sweep

magicgui viewer

magicgui viewer

nD image

nD image

nD labels

nD labels

nD multiscale image

nD multiscale image

nD multiscale image non-uniform

nD multiscale image non-uniform

nD points

nD points

nD points with features

nD points with features

nD shapes

nD shapes

nD shapes with text

nD shapes with text

nD surface

nD surface

nD vectors

nD vectors

nD vectors image

nD vectors image

napari without gui_qt

napari without gui_qt