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
plotat an exact centimetre size for a paper, under a print font profile.width_cm/height_cmsize the figure exactly (journals specify column widths in cm); the defaults (8.4 x 6 cm) are a single journal column, so a baresave_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.formatforces the output format ("pdf","png","svg", …) regardless of the path extension; leftNonethe extension decides. Returns the written path. This is the only save surface — the plot builders never write.