Examples#

A collection of short, self-contained examples.

Benchmarks#

Timing comparisons for the Python-side data-push pipeline in anyplotlib, matplotlib, Plotly, and Bokeh. All measurements capture only the Python serialisation cost — the bottleneck in a live Jupyter session where new data must be encoded and dispatched to the browser on every frame.

Plot Update Comparison

Plot Update Comparison

Interactive Examples#

Examples that use the callback / event system to connect widget interactions to live Python computations.

Interactive figure annotations — double-click to add, drag to place

Interactive figure annotations — double-click to add, drag to place

Draggable Point Widget

Draggable Point Widget

Key-Press Widget Placement

Key-Press Widget Placement

Live intensity thresholding on a multi-phase STEM image.

Live intensity thresholding on a multi-phase STEM image.

Inverse Pole Figure (IPF) Explorer

Inverse Pole Figure (IPF) Explorer

Interactive FFT ROI

Interactive FFT ROI

EELS multi-spectrum explorer.

EELS multi-spectrum explorer.

Interactive 3D Spectral Viewer

Interactive 3D Spectral Viewer

HAADF STEM nanoparticle picker.

HAADF STEM nanoparticle picker.

Interactive Contrast Segmentation

Interactive Contrast Segmentation

ROI-to-spectrum inspector for a 3-D EDS hyperspectral dataset.

ROI-to-spectrum inspector for a 3-D EDS hyperspectral dataset.

Inverse Pole Figure (IPF) Density Map

Inverse Pole Figure (IPF) Density Map

3-D Voxel Grain Explorer

3-D Voxel Grain Explorer

Interactive 1-D Gaussian Fitting

Interactive 1-D Gaussian Fitting

Advanced Interactive Contrast Segmentation (3 × 3 Grid)

Advanced Interactive Contrast Segmentation (3 × 3 Grid)

Star Globe Explorer — a linked celestial sphere and sky map

Star Globe Explorer — a linked celestial sphere and sky map

Markers#

A collection of short examples using markers

Horizontal Lines

Horizontal Lines

Vertical Lines

Vertical Lines

Points

Points

Text Labels

Text Labels

Arrows

Arrows

Circles

Circles

Rectangles

Rectangles

Line Segments

Line Segments

Ellipses

Ellipses

Squares

Squares

Polygons

Polygons

Coordinate transforms — pin markers to the axes or the screen

Coordinate transforms — pin markers to the axes or the screen

Plot Types#

A collection of short examples showing different plot types.

Step lines and log-scale spectra

Step lines and log-scale spectra

Twinned (secondary) y-axis

Twinned (secondary) y-axis

Label Sizes and Scientific (TeX) Formatting

Label Sizes and Scientific (TeX) Formatting

3D Plotting

3D Plotting

GPU-accelerated voxels

GPU-accelerated voxels

pcolormesh — non-linear axes

pcolormesh — non-linear axes

1D Spectra

1D Spectra

Inset Plots

Inset Plots

2D Image with Histogram

2D Image with Histogram

1D Line Styles

1D Line Styles

Bar Chart

Bar Chart

Floating keys — IPF triangles and colour wheels

Floating keys — IPF triangles and colour wheels

Custom Grid Layouts with GridSpec

Custom Grid Layouts with GridSpec

Custom Tile Backend — pan & zoom a huge image you never hold in memory

Custom Tile Backend — pan & zoom a huge image you never hold in memory

Textured 3-D surfaces — a celestial globe

Textured 3-D surfaces — a celestial globe

Widgets#

Short examples of using widgets in anyplotlib

1D Horizontal Line Widget

1D Horizontal Line Widget

1D Vertical Line Widget

1D Vertical Line Widget

1D Range Widget

1D Range Widget

2D Crosshair Widget

2D Crosshair Widget

2D Circle Widget

2D Circle Widget

2D Rectangle Widget

2D Rectangle Widget

2D Annular Widget

2D Annular Widget

2D Label Widget

2D Label Widget

2D Polygon Widget

2D Polygon Widget

1D Point Widget

1D Point Widget

2D Arrow Widget

2D Arrow Widget

3D Plane Widget

3D Plane Widget

Gallery generated by Sphinx-Gallery