Struct implot::PlotBars[][src]

pub struct PlotBars { /* fields omitted */ }
Expand description

Struct to provide bar plotting functionality.

Implementations

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

Set the width of the bars

Set the bars to be horizontal (default is vertical)

Draw a previously-created bar plot. Use this in closures passed to Plot::build(). The axis_positions specify where on the corresponding 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

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.