Skip to main content

save_graph

Function save_graph 

Source
pub fn save_graph(
    render_state: &RenderState,
    plot: &Plot,
    size: (u32, u32),
    path: impl AsRef<Path>,
) -> Result<(), SaveError>
Expand description

Render the plot’s current view to a size = (width, height) pixel PNG at path. Captures the data layer (clear + image + curves); chrome is not included. Requires crate::install to have run on render_state.