pub struct BoxPlot { /* private fields */ }Expand description
Box plot for displaying distribution statistics
Shows five-number summary: minimum, Q1, median, Q3, maximum
Implementations§
Source§impl BoxPlot
impl BoxPlot
Sourcepub fn new(data: Vec<f64>) -> Self
pub fn new(data: Vec<f64>) -> Self
Create a new box plot
§Examples
let data = vec![1.0, 2.0, 3.0, 4.0, 5.0];
let boxplot = BoxPlot::new(data);Sourcepub fn show_outliers(self, show: bool) -> Self
pub fn show_outliers(self, show: bool) -> Self
Set whether to show outliers
Sourcepub fn outlier_method(self, method: OutlierMethod) -> Self
pub fn outlier_method(self, method: OutlierMethod) -> Self
Set the outlier detection method
Sourcepub fn legend_entry(&self) -> Option<LegendEntry>
pub fn legend_entry(&self) -> Option<LegendEntry>
Get legend entry for this box plot
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BoxPlot
impl RefUnwindSafe for BoxPlot
impl Send for BoxPlot
impl Sync for BoxPlot
impl Unpin for BoxPlot
impl UnwindSafe for BoxPlot
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