Lines, points and bars
Line styles
Solid, dashed, dotted, dash-dot and long-dash lines with an outside legend.
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.
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.
Code of this example · cargo run --release -p plot-area-fill
Stacked areas
Stacked and 100 % stacked area charts side by side.
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.
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.
Code of this example · cargo run --release -p plot-bars
Stem and waterfall charts
A stem plot and a waterfall chart with a total.
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.
Code of this example · cargo run --release -p plot-errorbars-band
Vector field and function plots
Colored quiver plot and adaptively sampled function plots.
Code of this example · cargo run --release -p plot-quiver-function