numeraire_graphics.save_paper#

numeraire_graphics.save_paper(plot: Any, path: str | Path, *, width_cm: float = 8.4, height_cm: float = 6.0, font_profile: str = 'latex', dpi: int = 300, format: str | None = None) Path[source]#

Save plot at an exact centimetre size for a paper, under a print font profile.

width_cm / height_cm size the figure exactly (journals specify column widths in cm); the defaults (8.4 x 6 cm) are a single journal column, so a bare save_paper(plot, path) already yields a sensibly-proportioned figure. font_profile ("latex" | "sans" | "none") sets matplotlib rcParams for the duration of the save only, then restores them. format forces the output format ("pdf", "png", "svg", …) regardless of the path extension; left None the extension decides. Returns the written path. This is the only save surface — the plot builders never write.