pub struct SimpleDigitalPlot<'a> { /* private fields */ }Expand description
Simple digital plot for single array data (y values only, x is auto-generated)
Implementations§
Source§impl<'a> SimpleDigitalPlot<'a>
impl<'a> SimpleDigitalPlot<'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 digital 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: DigitalFlags) -> Self
pub fn with_flags(self, flags: DigitalFlags) -> Self
Set digital flags
Trait Implementations§
Source§impl<'a> PlotData for SimpleDigitalPlot<'a>
impl<'a> PlotData for SimpleDigitalPlot<'a>
Auto Trait Implementations§
impl<'a> Freeze for SimpleDigitalPlot<'a>
impl<'a> RefUnwindSafe for SimpleDigitalPlot<'a>
impl<'a> Send for SimpleDigitalPlot<'a>
impl<'a> Sync for SimpleDigitalPlot<'a>
impl<'a> Unpin for SimpleDigitalPlot<'a>
impl<'a> UnwindSafe for SimpleDigitalPlot<'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