pub struct DigitalPlot<'a> { /* private fields */ }Expand description
Builder for digital plots with extensive customization options
Digital plots are used to display digital signals (0/1, high/low, etc.) They do not respond to y drag or zoom, and are always referenced to the bottom of the plot.
Implementations§
Source§impl<'a> DigitalPlot<'a>
impl<'a> DigitalPlot<'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 digital plot with the given label and data
Sourcepub fn with_flags(self, flags: DigitalFlags) -> Self
pub fn with_flags(self, flags: DigitalFlags) -> Self
Set digital 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§
Source§impl<'a> PlotData for DigitalPlot<'a>
impl<'a> PlotData for DigitalPlot<'a>
Auto Trait Implementations§
impl<'a> Freeze for DigitalPlot<'a>
impl<'a> RefUnwindSafe for DigitalPlot<'a>
impl<'a> Send for DigitalPlot<'a>
impl<'a> Sync for DigitalPlot<'a>
impl<'a> Unpin for DigitalPlot<'a>
impl<'a> UnwindSafe for DigitalPlot<'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