[][src]Struct implot::PlotBars

pub struct PlotBars { /* fields omitted */ }

Struct to provide bar plotting functionality.

Implementations

impl PlotBars[src]

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

Create a new bar plot to be shown. Defaults to drawing vertical bars. Does not draw anything yet.

pub fn with_bar_width(self, bar_width: f64) -> Self[src]

Set the width of the bars

pub fn with_horizontal_bars(self) -> Self[src]

Set the bars to be horizontal (default is vertical)

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

Draw a previously-created bar plot. Use this in closures passed to Plot::build(). The axis_positions specify where on the corersponding axis (X for vertical mode, Y for horizontal mode) the bar is drawn, and the bar_values specify what values the bars 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.