pub struct Bars { /* private fields */ }Expand description
A bars graph.
All bars are 1 unit wide.
§Examples
use termplot::*;
let mut plot = Plot::default();
plot.set_domain(Domain(0.0..6.0))
.set_codomain(Domain(0.0..10.0))
.set_title("Graph title")
.set_x_label("X axis")
.set_y_label("Y axis")
.set_size(Size::new(50, 25))
.add_plot(Box::new(plot::Bars::new(
vec![2.0, 5.0, 1.0, 8.0, 9.0, 1.0],
)));Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Bars
impl RefUnwindSafe for Bars
impl Send for Bars
impl Sync for Bars
impl Unpin for Bars
impl UnwindSafe for Bars
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more