Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Lines, points and bars

Line styles

Solid, dashed, dotted, dash-dot and long-dash lines with an outside legend.

Line styles

Code of this example · cargo run --release -p plot-line


Markers, steps and smoothing

Point markers, step lines, monotone spline smoothing and marker-only series.

Markers, steps and smoothing

Code of this example · cargo run --release -p plot-markers-steps-smooth


Area and fill between

Filled area under a curve and the band between two curves.

Area and fill between

Code of this example · cargo run --release -p plot-area-fill


Stacked areas

Stacked and 100 % stacked area charts side by side.

Stacked areas

Code of this example · cargo run --release -p plot-stacked-area


Scatter and bubble charts

Colormapped scatter with a colorbar and regression line; bubble chart on a log axis.

Scatter and bubble charts

Code of this example · cargo run --release -p plot-scatter-bubble


Bar charts

Grouped, stacked, percent (horizontal) and negative-value bar charts with value labels.

Bar charts

Code of this example · cargo run --release -p plot-bars


Stem and waterfall charts

A stem plot and a waterfall chart with a total.

Stem and waterfall charts

Code of this example · cargo run --release -p plot-stem-waterfall


Error bars and confidence bands

Measurements with error bars over a model line with a ±1 band.

Error bars and confidence bands

Code of this example · cargo run --release -p plot-errorbars-band


Vector field and function plots

Colored quiver plot and adaptively sampled function plots.

Vector field and function plots

Code of this example · cargo run --release -p plot-quiver-function