diff --git a/.github/scripts/plot_gallery.py b/.github/scripts/plot_gallery.py new file mode 100644 index 00000000..a203ca12 --- /dev/null +++ b/.github/scripts/plot_gallery.py @@ -0,0 +1,257 @@ +"""Render an AAanalysis plot gallery across data scales, for visual inspection and +byte-exact A/B comparison. + +Two things this gives you: + +1. **See the plots at real data ranges** — plots are rendered across data scales + (``tiny`` ~10% of a normal case up to ``huge`` ~1000%) on realistic bundled data, + so you can eyeball that layout survives a near-empty map *and* a full 74-subcategory + one. The step count scales with figure complexity: complex key figures get the full + 5-step sweep, medium figures 3 steps, and simple plots + evals a single step (see + ``TIER_SCALES``). PNGs land in ``/