pub struct ShadedPlot<'a> { /* private fields */ }Expand description
Builder for shaded area plots
Implementations§
Source§impl<'a> ShadedPlot<'a>
impl<'a> ShadedPlot<'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 shaded plot between a line and a reference Y value
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 shading The area will be filled between the line and this Y value
Sourcepub fn with_flags(self, flags: ShadedFlags) -> Self
pub fn with_flags(self, flags: ShadedFlags) -> Self
Set shaded 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 ShadedPlot<'a>
impl<'a> RefUnwindSafe for ShadedPlot<'a>
impl<'a> Send for ShadedPlot<'a>
impl<'a> Sync for ShadedPlot<'a>
impl<'a> Unpin for ShadedPlot<'a>
impl<'a> UnwindSafe for ShadedPlot<'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