qis.save_figs_to_pdf¶
- qis.save_figs_to_pdf(figs, file_name, orientation='landscape', local_path=None, add_current_date=True)[source]¶
write several matplotlib figures to one multi-page PDF, one figure per page.
This is how a factsheet is assembled: each panel is drawn as its own figure and they are collected here, so a report is a list of figures rather than a layout engine. A None entry is skipped, which lets a caller build the list conditionally without filtering it.
- Parameters:
figs (List[Figure] | Dict[str, Figure]) – figures to write, in page order. A dict is written in insertion order and its keys are ignored
file_name (str) – base file name without extension
orientation (Literal['portrait', 'landscape']) – page orientation
local_path (str | None) – directory to write to. None writes to the working directory
add_current_date (bool) – append the current date to the file name. True by default here, since a report is usually dated
- Returns:
the path written
- Return type: