Struct implot::PlotStems[][src]

pub struct PlotStems { /* fields omitted */ }

Struct to provide stem plotting functionality.

Implementations

impl PlotStems[src]

pub fn new(label: &str) -> Self[src]

Create a new stem plot to be shown. Does not draw anything by itself, call PlotStems::plot on the struct for that.

pub fn with_reference_y(mut self: Self, reference_y: f64) -> Self[src]

Set the reference y value for the stems

pub fn plot(&self, axis_positions: &[f64], stem_values: &[f64])[src]

Draw a previously-created stem plot. Use this in closures passed to Plot::build(). The axis_positions specify where on the X axis the stems are drawn, and the stem_values specify what values the stems have.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.