Skip to main content

scatterplot_add_y

Function scatterplot_add_y 

Source
pub fn scatterplot_add_y<Y: ToString>(
    plot: &mut Plot<GridCanvas>,
    y: &[Y],
    options: LineplotSeriesOptions,
) -> Result<(), LineplotError>
Expand description

Adds a y-only scatter series to an existing plot with implicit x = 1..=n.

ยงErrors

Returns LineplotError::EmptySeries for empty input and LineplotError::InvalidNumericValue when parsing fails.