Skip to main content

lineplot_y

Function lineplot_y 

Source
pub fn lineplot_y<Y: ToString>(
    y: &[Y],
    options: LineplotOptions,
) -> Result<Plot<GridCanvas>, LineplotError>
Expand description

Constructs a lineplot from y values with implicit x = 1..=n.

ยงErrors

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