Skip to main content

write_plot_pdf

Function write_plot_pdf 

Source
pub fn write_plot_pdf(
    plots: Vec<Plot>,
    layout: Layout,
    path: &Path,
) -> Result<()>
Expand description

Render plots to a PDF file.

Builds a single-Y-axis chart from plots and layout, renders to PDF, and writes the result to path.

ยงErrors

Returns an error if PDF rendering fails or the file cannot be written.