multipanellisted
Install: claude install-skill jaechang-hits/SciAgent-Skills
# multipanel
## Overview
A multi-panel figure is **one** figure, built one of two ways depending on what
you have:
- **Option 1 — redraw every panel** (you have the data or plotting code): draw
each data panel with a python script into its **own `subfigure`** so it packs
to its own labels — no empty bands, and axes need NOT align across the grid.
Follow the discipline below so legends stay inside their panels, panel letters
sit at each panel's own top-left, and text never overlaps.
- **Option 2 — composite finished images** (you only have rendered PNG/PDF panels):
paste them onto a `plt.subplot_mosaic` canvas — fine here, since images carry no
tick labels to misalign — add panel letters, and export.
A mix is allowed: if one or two panels are image-only (no data/code), `imshow`
them onto their own subfigure axes and redraw the rest into the same figure. Both
modes export a vector PDF and a high-DPI PNG.
**Always export the individual panels AND the composite.** Every run outputs both:
one standalone figure per panel (`figure1A.png`, `figure1B.png`, …) and the combined
figure (`combined_figure1.pdf` + `.png`) — not just the composite. Because a
matplotlib `subfigure` cannot be saved on its own, factor every data panel's plotting
body into a `draw_<letter>(ax)` function (option 1); the same function then draws onto
the composite's subfigure axis AND onto a fresh standalone figure, so the panels stay
identical across both outputs with no duplicated drawing code.