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.