Repository navigation
anytrellis 0.1.0
The first release.
Added
Trellis: one panel per level of the facet columns: a wrap (wrap=,cols=) or a
grid (row=,col=) that keeps empty cells, with shared, per-row, per-column or free
scales (share_x=,share_y=), linear or log (x_scale=,y_scale=).- Marks:
line,points,bars(stacked or dodged),area,band,rect,text,
rule, and summaries computed per panel in Python:hist,box,densityandsmooth
(loess or linear, with a confidence band). - Data from Polars, pandas, PyArrow or DuckDB (through narwhals), or a dict of arrays;
numbers, times and categories, with category colours and legends. - Drawing with WebGPU, WebGL2 or Canvas 2D, whichever the browser has; the data goes to the
browser once, as binary buffers, so millions of marks stay interactive. - Zooming and panning (scroll, drag, one axis, box zoom), panels that share a scale
zooming together,fit_yto fit y to the data in view, undo and reset; one panel at a
time (open,close) and full screen. - Selecting: a brush (
s) in every panel or, withlink=, in one panel and followed by
key;select(),selectionandselected()from Python. Clicking legend entries
selects their colours. - Linked plots:
link(a, b, ..., on=)shares one selection between plots, histograms
filling to their selected share (crossfiltering). - Tooltips with Python's values;
save_htmlwrites a page that opens without Python. - Works in JupyterLab and marimo, and other anywidget hosts (Jupyter Notebook, VS Code).
anytrellis.datasets.load: six small example datasets, with their sources and licences
indatasets/SOURCES.md; example notebooks for Jupyter and marimo.