pub struct StemPlot<'a> { /* private fields */ }Expand description
Builder for stem plots (lollipop charts)
Implementations§
Source§impl<'a> StemPlot<'a>
impl<'a> StemPlot<'a>
Sourcepub fn new(label: &'a str, x_data: &'a [f64], y_data: &'a [f64]) -> Self
pub fn new(label: &'a str, x_data: &'a [f64], y_data: &'a [f64]) -> Self
Create a new stem plot with the given label and data
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 Stems will be drawn from this Y value to the data points
Sourcepub fn with_flags(self, flags: StemsFlags) -> Self
pub fn with_flags(self, flags: StemsFlags) -> Self
Set stem flags for customization
Sourcepub fn with_offset(self, offset: i32) -> Self
pub fn with_offset(self, offset: i32) -> Self
Set data offset for partial plotting
Sourcepub fn with_stride(self, stride: i32) -> Self
pub fn with_stride(self, stride: i32) -> Self
Set data stride for non-contiguous data
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for StemPlot<'a>
impl<'a> RefUnwindSafe for StemPlot<'a>
impl<'a> Send for StemPlot<'a>
impl<'a> Sync for StemPlot<'a>
impl<'a> Unpin for StemPlot<'a>
impl<'a> UnwindSafe for StemPlot<'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