[−][src]Struct plotters::element::Boxplot
The boxplot element
Methods
impl<K: Clone> Boxplot<K, BoxplotOrientV<K, f32>>
[src]
pub fn new_vertical(key: K, quartiles: &Quartiles) -> Self
[src]
Create a new vertical boxplot element.
key
: The key (the X axis value)quartiles
: The quartiles values for the Y axis- returns The newly created boxplot element
use plotters::prelude::*; let quartiles = Quartiles::new(&[7, 15, 36, 39, 40, 41]); let plot = Boxplot::new_vertical("group", &quartiles);
impl<K: Clone> Boxplot<K, BoxplotOrientH<K, f32>>
[src]
pub fn new_horizontal(key: K, quartiles: &Quartiles) -> Self
[src]
Create a new horizontal boxplot element.
key
: The key (the Y axis value)quartiles
: The quartiles values for the X axis- returns The newly created boxplot element
use plotters::prelude::*; let quartiles = Quartiles::new(&[7, 15, 36, 39, 40, 41]); let plot = Boxplot::new_horizontal("group", &quartiles);
impl<K, O: BoxplotOrient<K, f32>> Boxplot<K, O>
[src]
pub fn style<S: Into<ShapeStyle>>(self, style: S) -> Self
[src]
Set the style of the boxplot.
S
: The required style- returns The up-to-dated boxplot element
use plotters::prelude::*; let quartiles = Quartiles::new(&[7, 15, 36, 39, 40, 41]); let plot = Boxplot::new_horizontal("group", &quartiles).style(&BLUE);
pub fn width(self, width: u32) -> Self
[src]
Set the bar width.
width
: The required width- returns The up-to-dated boxplot element
use plotters::prelude::*; let quartiles = Quartiles::new(&[7, 15, 36, 39, 40, 41]); let plot = Boxplot::new_horizontal("group", &quartiles).width(10);
pub fn whisker_width(self, whisker_width: f64) -> Self
[src]
Set the width of the whiskers as a fraction of the bar width.
whisker_width
: The required fraction- returns The up-to-dated boxplot element
use plotters::prelude::*; let quartiles = Quartiles::new(&[7, 15, 36, 39, 40, 41]); let plot = Boxplot::new_horizontal("group", &quartiles).whisker_width(0.5);
pub fn offset<T: Into<f64> + Copy>(self, offset: T) -> Self
[src]
Set the element offset on the key axis.
offset
: The required offset (on the X axis for vertical, on the Y axis for horizontal)- returns The up-to-dated boxplot element
use plotters::prelude::*; let quartiles = Quartiles::new(&[7, 15, 36, 39, 40, 41]); let plot = Boxplot::new_horizontal("group", &quartiles).offset(-5);
Trait Implementations
impl<'a, K: 'a + Clone, O: BoxplotOrient<K, f32>> PointCollection<'a, (<O as BoxplotOrient<K, f32>>::XType, <O as BoxplotOrient<K, f32>>::YType)> for &'a Boxplot<K, O>
[src]
type Borrow = (O::XType, O::YType)
The item in point iterator
type IntoIter = Vec<Self::Borrow>
The point iterator
fn point_iter(self) -> Self::IntoIter
[src]
impl<K, DB: DrawingBackend, O: BoxplotOrient<K, f32>> Drawable<DB> for Boxplot<K, O>
[src]
Auto Trait Implementations
impl<K, O> Send for Boxplot<K, O> where
K: Send,
O: Send,
K: Send,
O: Send,
impl<K, O> Unpin for Boxplot<K, O> where
K: Unpin,
O: Unpin,
K: Unpin,
O: Unpin,
impl<K, O> Sync for Boxplot<K, O> where
K: Sync,
O: Sync,
K: Sync,
O: Sync,
impl<K, O> UnwindSafe for Boxplot<K, O> where
K: UnwindSafe,
O: UnwindSafe,
K: UnwindSafe,
O: UnwindSafe,
impl<K, O> RefUnwindSafe for Boxplot<K, O> where
K: RefUnwindSafe,
O: RefUnwindSafe,
K: RefUnwindSafe,
O: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
[src]
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into(self) -> D
[src]
impl<T, U> ConvertInto<U> for T where
U: ConvertFrom<T>,
[src]
U: ConvertFrom<T>,