Skip to main content

BoxPlot

Struct BoxPlot 

Source
pub struct BoxPlot<K, O> { /* private fields */ }

Implementations§

Source§

impl<K> BoxPlot<K, Vertical<K, f64>>

Source

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>>

Source

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>

Source

pub fn with_line_style<S: Into<ShapeStyle>>(&mut self, style: S) -> &mut Self

Sets the line style used by the box plot

Source

pub fn with_box_style<S: Into<ShapeStyle>>(&mut self, style: S) -> &mut Self

Sets the box style used to fill the box plot

Source

pub fn with_width(&mut self, width: f64) -> &mut Self

Sets the width of the box.

Source

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>

Source§

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>

Source§

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>

The point iterator
Source§

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>

§

impl<K, O> Send for BoxPlot<K, O>
where K: Send, O: Send,

§

impl<K, O> Sync for BoxPlot<K, O>
where K: Sync, O: Sync,

§

impl<K, O> Unpin for BoxPlot<K, O>
where K: Unpin, O: Unpin,

§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<'b, T, DB, Coord> IntoDynElement<'b, DB, Coord> for T
where T: Drawable<DB> + 'b, &'a T: for<'a> PointCollection<'a, Coord>, Coord: Clone, DB: DrawingBackend,

Source§

fn into_dyn(self) -> DynElement<'b, DB, Coord>

Make the conversion
Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.