[−][src]Struct implot::PlotBars
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
impl RefUnwindSafe for PlotBars
impl Send for PlotBars
impl Sync for PlotBars
impl Unpin for PlotBars
impl UnwindSafe for PlotBars
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,