Skip to main content

write_twin_y_plot_pdf

Function write_twin_y_plot_pdf 

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

Render a dual-Y-axis chart to a PDF file.

primary plots are drawn against the left Y axis; secondary plots are drawn against the right Y2 axis.

ยงErrors

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