pub struct SimpleStemPlot<'a> { /* private fields */ }Expand description
Simple stem plot for quick plotting without builder pattern
Implementations§
Source§impl<'a> SimpleStemPlot<'a>
impl<'a> SimpleStemPlot<'a>
Sourcepub fn new(label: &'a str, values: &'a [f64]) -> Self
pub fn new(label: &'a str, values: &'a [f64]) -> Self
Create a simple stem plot with Y values only (X will be indices)
Sourcepub fn with_y_ref(self, y_ref: f64) -> Self
pub fn with_y_ref(self, y_ref: f64) -> Self
Set the reference Y value for stems
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 SimpleStemPlot<'a>
impl<'a> RefUnwindSafe for SimpleStemPlot<'a>
impl<'a> Send for SimpleStemPlot<'a>
impl<'a> Sync for SimpleStemPlot<'a>
impl<'a> Unpin for SimpleStemPlot<'a>
impl<'a> UnwindSafe for SimpleStemPlot<'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