pub struct BoxPlot<K, O> { /* private fields */ }Implementations§
Source§impl<K> BoxPlot<K, Vertical<K, f64>>
impl<K> BoxPlot<K, Vertical<K, f64>>
Sourcepub fn vertical_from_key_quartiles(key: K, quartiles: Quartiles) -> Self
pub fn vertical_from_key_quartiles(key: K, quartiles: Quartiles) -> Self
Constructs a new vertical box plot based on a key and quartiles.
Source§impl<K> BoxPlot<K, Horizontal<K, f64>>
impl<K> BoxPlot<K, Horizontal<K, f64>>
Sourcepub fn horizontal_from_key_quartiles(key: K, quartiles: Quartiles) -> Self
pub fn horizontal_from_key_quartiles(key: K, quartiles: Quartiles) -> Self
Constructs a new horizontal box plot based on a key and quartiles.
Source§impl<K, O> BoxPlot<K, O>
impl<K, O> BoxPlot<K, O>
Sourcepub fn with_line_style<S: Into<ShapeStyle>>(&mut self, style: S) -> &mut Self
pub fn with_line_style<S: Into<ShapeStyle>>(&mut self, style: S) -> &mut Self
Sets the line style used by the box plot
Sourcepub fn with_box_style<S: Into<ShapeStyle>>(&mut self, style: S) -> &mut Self
pub fn with_box_style<S: Into<ShapeStyle>>(&mut self, style: S) -> &mut Self
Sets the box style used to fill the box plot
Sourcepub fn with_width(&mut self, width: f64) -> &mut Self
pub fn with_width(&mut self, width: f64) -> &mut Self
Sets the width of the box.
Sourcepub fn with_whisker_width(&mut self, width: f64) -> &mut Self
pub fn with_whisker_width(&mut self, width: f64) -> &mut Self
Sets the width of the whiskers.
Trait Implementations§
Source§impl<K, DB: DrawingBackend, O: Orientation<K, f64>> Drawable<DB> for BoxPlot<K, O>
impl<K, DB: DrawingBackend, O: Orientation<K, f64>> Drawable<DB> for BoxPlot<K, O>
Source§fn draw<I: Iterator<Item = <BackendCoordOnly as CoordMapper>::Output>>(
&self,
pos: I,
backend: &mut DB,
_parent_dim: (u32, u32),
) -> Result<(), DrawingErrorKind<DB::ErrorType>>
fn draw<I: Iterator<Item = <BackendCoordOnly as CoordMapper>::Output>>( &self, pos: I, backend: &mut DB, _parent_dim: (u32, u32), ) -> Result<(), DrawingErrorKind<DB::ErrorType>>
Actually draws the element. The key points is already translated into the
image coordinate and can be used by DC directly
Source§impl<'a, K: Clone, O: Orientation<K, f64>> PointCollection<'a, (<O as Orientation<K, f64>>::XType, <O as Orientation<K, f64>>::YType)> for &'a BoxPlot<K, O>
impl<'a, K: Clone, O: Orientation<K, f64>> PointCollection<'a, (<O as Orientation<K, f64>>::XType, <O as Orientation<K, f64>>::YType)> for &'a BoxPlot<K, O>
Source§type Point = (<O as Orientation<K, f64>>::XType, <O as Orientation<K, f64>>::YType)
type Point = (<O as Orientation<K, f64>>::XType, <O as Orientation<K, f64>>::YType)
The item in point iterator
Source§type IntoIter = Vec<<&'a BoxPlot<K, O> as PointCollection<'a, (<O as Orientation<K, f64>>::XType, <O as Orientation<K, f64>>::YType)>>::Point>
type IntoIter = Vec<<&'a BoxPlot<K, O> as PointCollection<'a, (<O as Orientation<K, f64>>::XType, <O as Orientation<K, f64>>::YType)>>::Point>
The point iterator
Source§fn point_iter(self) -> Self::IntoIter
fn point_iter(self) -> Self::IntoIter
framework to do the coordinate mapping
Auto Trait Implementations§
impl<K, O> Freeze for BoxPlot<K, O>where
K: Freeze,
impl<K, O> RefUnwindSafe for BoxPlot<K, O>where
K: RefUnwindSafe,
O: RefUnwindSafe,
impl<K, O> Send for BoxPlot<K, O>
impl<K, O> Sync for BoxPlot<K, O>
impl<K, O> Unpin for BoxPlot<K, O>
impl<K, O> UnsafeUnpin for BoxPlot<K, O>where
K: UnsafeUnpin,
impl<K, O> UnwindSafe for BoxPlot<K, O>where
K: UnwindSafe,
O: UnwindSafe,
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
Source§impl<'b, T, DB, Coord> IntoDynElement<'b, DB, Coord> for Twhere
T: Drawable<DB> + 'b,
&'a T: for<'a> PointCollection<'a, Coord>,
Coord: Clone,
DB: DrawingBackend,
impl<'b, T, DB, Coord> IntoDynElement<'b, DB, Coord> for Twhere
T: Drawable<DB> + 'b,
&'a T: for<'a> PointCollection<'a, Coord>,
Coord: Clone,
DB: DrawingBackend,
Source§fn into_dyn(self) -> DynElement<'b, DB, Coord>
fn into_dyn(self) -> DynElement<'b, DB, Coord>
Make the conversion
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more