Skip to main content

densityplot_add

Function densityplot_add 

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

Adds a density series to an existing density plot.

ยงErrors

Returns LineplotError::LengthMismatch when lengths differ, LineplotError::EmptySeries for empty input, and LineplotError::InvalidNumericValue when parsing fails. Returns LineplotError::DensityPlotRequired when called on a non-density plot.