pub struct ErrorBarsPlot<'a> { /* private fields */ }Expand description
Builder for error bars plots
Implementations§
Source§impl<'a> ErrorBarsPlot<'a>
impl<'a> ErrorBarsPlot<'a>
Sourcepub fn new(
label: &'a str,
x_data: &'a [f64],
y_data: &'a [f64],
err_data: &'a [f64],
) -> Self
pub fn new( label: &'a str, x_data: &'a [f64], y_data: &'a [f64], err_data: &'a [f64], ) -> Self
Create a new error bars plot with symmetric errors
§Arguments
label- The label for the error barsx_data- X coordinates of the data pointsy_data- Y coordinates of the data pointserr_data- Error values (symmetric, ±err)
Sourcepub fn with_flags(self, flags: ErrorBarsFlags) -> Self
pub fn with_flags(self, flags: ErrorBarsFlags) -> Self
Set error bar 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
Sourcepub fn horizontal(self) -> Self
pub fn horizontal(self) -> Self
Make error bars horizontal instead of vertical
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ErrorBarsPlot<'a>
impl<'a> RefUnwindSafe for ErrorBarsPlot<'a>
impl<'a> Send for ErrorBarsPlot<'a>
impl<'a> Sync for ErrorBarsPlot<'a>
impl<'a> Unpin for ErrorBarsPlot<'a>
impl<'a> UnwindSafe for ErrorBarsPlot<'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