How-to guides¶
Steps for a task you already have in mind. Each guide starts from a plot like the one in Your first trellis plot.
Getting started
- Install anytrellis
- Plot your own tables: Polars, pandas, PyArrow, DuckDB, Ibis or a dict of columns.
Panels and scales
- Choose a facet layout: a wrap or a grid, columns, height, titles.
- Share or free the scales: per row, per column, per panel.
- Use a log scale
Layers
- Draw lines, points and bars
- Draw areas, bands, rects and text: ranges, heatmaps, labels, reference lines.
- Show distributions: histograms, box plots, violins, densities and error bars.
- Plot every pair of columns: a scatterplot matrix, brushed across its panels.
- Fit a smooth line: loess or least squares, with a confidence band.
- Colours, legends and order
Working with plots
- Link plots: one selection across separate plots.
- Plot large data: millions of marks, hundreds of panels.
- Page through many panels: sort and filter them by each panel's statistics.
- Share a plot: a page that opens without Python.
- Use anytrellis in marimo
Coming from another library
When something goes wrong