pub struct SimpleStairsPlot<'a> { /* private fields */ }Expand description
Simple stairs plot for single array data (y values only, x is auto-generated)
Implementations§
Source§impl<'a> SimpleStairsPlot<'a>
impl<'a> SimpleStairsPlot<'a>
Sourcepub fn new(label: &'a str, y_data: &'a [f64]) -> Self
pub fn new(label: &'a str, y_data: &'a [f64]) -> Self
Create a new simple stairs plot with only y data
Sourcepub fn with_x_scale(self, x_scale: f64) -> Self
pub fn with_x_scale(self, x_scale: f64) -> Self
Set the x scale (spacing between points)
Sourcepub fn with_x_start(self, x_start: f64) -> Self
pub fn with_x_start(self, x_start: f64) -> Self
Set the x start value
Sourcepub fn with_flags(self, flags: StairsFlags) -> Self
pub fn with_flags(self, flags: StairsFlags) -> Self
Set stairs flags
Trait Implementations§
Source§impl<'a> PlotData for SimpleStairsPlot<'a>
impl<'a> PlotData for SimpleStairsPlot<'a>
Auto Trait Implementations§
impl<'a> Freeze for SimpleStairsPlot<'a>
impl<'a> RefUnwindSafe for SimpleStairsPlot<'a>
impl<'a> Send for SimpleStairsPlot<'a>
impl<'a> Sync for SimpleStairsPlot<'a>
impl<'a> Unpin for SimpleStairsPlot<'a>
impl<'a> UnwindSafe for SimpleStairsPlot<'a>
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