You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Export images of a plot (toolbar button, or e): copy a PNG, or an SVG with a PNG beside
it, to the clipboard; download a PNG (twice the screen's size) or an SVG; or, in a
notebook, save either next to the notebook without overwriting. The image is the plot as
shown (zoom, selection, opened panel, theme), without the toolbar. It works in pages
saved with save_html too.
Trellis.save_png and Trellis.save_svg: the same image drawn in Python, without a
browser (scripts, reports, CI): the zoom last shown in the notebook, the selection, a
linked plot's highlight and an opened panel, in the light or dark theme, at any size.
PNGs need the new png extra (pip install "anytrellis[png]", with resvg-py).
Pages of panels: a wrap of more than 100 panels shows them a page at a time (6 by 4; Trellis(rows=, cols=) sets the page, rows="all" turns paging off), with a bar to turn
the pages (also Page Up and Page Down), sort the panels by a statistic of each and filter
them by name and by statistics' ranges. The statistics are computed in Python: rows, and
the mean, median, min, max, sd and trend of the values drawn, plus any columns given with panel_stats(). From Python: sort_panels(), filter_panels(), show_page(), shown_panels(), stats(), page, pages and paging. An opened panel steps through
the panels as sorted and filtered; images and saved pages show the page shown.
violin(): each group's values as a violin (a kernel density mirrored around its
position), with its median and quartiles, or its values as points (inner=). Scaled to
the same area, by count or to the same width (scale=); side by side with a colour,
sideways when y is the category. Brushing selects whole violins.
errorbar(): each group's mean with its confidence interval (extent="ci", at level=), standard error, standard deviation or range, with caps and a point at the
mean; or intervals you computed, from ymin=/ymax= (or xmin=/xmax=, sideways).
line(step=...): step lines, "post", "pre" or "mid". Hovering a step shows the
row it starts from.
Documentation at mluttikh.github.io/anytrellis:
tutorials, how-to guides, a gallery, the API reference and explanations, with live plots.
Changed
A wrap of more than 100 panels now shows them a page at a time (it drew them all, small); Trellis(..., rows="all") draws them all as before. See Upgrading.
A page of many plots (standalone.js) starts each plot as it scrolls near, so a long
page stays within the browser's limit of GPU contexts.
Fixed
Tooltips on documentation sites (Material, Zensical) are as compact as in a notebook:
the site's table styles no longer reach them, nor its letter spacing the plot.
A linked plot's highlight of part of a histogram's bars draws the faded bars whole, with
the selected share solid from their base (the faded part was missing).
x labels of neighbouring panels no longer run together at their edges ("AprMar"): a
label that would reach the next panel's first is left out.
Box plots failed in WebAssembly (marimo's in-browser notebooks, Pyodide), where indices
are 32-bit.
A plot now redraws when the page switches between light and dark by data-md-color-scheme (Material and Zensical sites).