pub struct SimpleLinePlot<'a> { /* private fields */ }Expand description
Simple line plot for quick plotting without builder pattern
Implementations§
Source§impl<'a> SimpleLinePlot<'a>
impl<'a> SimpleLinePlot<'a>
Sourcepub fn new(label: &'a str, values: &'a [f64]) -> Self
pub fn new(label: &'a str, values: &'a [f64]) -> Self
Create a simple line plot with Y values only (X will be indices)
Sourcepub fn with_x_scale(self, scale: f64) -> Self
pub fn with_x_scale(self, scale: f64) -> Self
Set X scale factor
Sourcepub fn with_x_start(self, start: f64) -> Self
pub fn with_x_start(self, start: f64) -> Self
Set X start value
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for SimpleLinePlot<'a>
impl<'a> RefUnwindSafe for SimpleLinePlot<'a>
impl<'a> Send for SimpleLinePlot<'a>
impl<'a> Sync for SimpleLinePlot<'a>
impl<'a> Unpin for SimpleLinePlot<'a>
impl<'a> UnwindSafe for SimpleLinePlot<'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