pub struct LinePlot<'a> { /* private fields */ }Expand description
Builder for line plots with extensive customization options
Implementations§
Source§impl<'a> LinePlot<'a>
impl<'a> LinePlot<'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 line plot with the given label and data
Sourcepub fn with_flags(self, flags: LineFlags) -> Self
pub fn with_flags(self, flags: LineFlags) -> Self
Set line 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 LinePlot<'a>
impl<'a> RefUnwindSafe for LinePlot<'a>
impl<'a> Send for LinePlot<'a>
impl<'a> Sync for LinePlot<'a>
impl<'a> Unpin for LinePlot<'a>
impl<'a> UnwindSafe for LinePlot<'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