[−][src]Struct plotlib::histogram::Histogram
A one-dimensional histogram with equal binning.
Fields
bin_bounds: Vec<f64>
bin_counts: Vec<f64>
bin_densities: Vec<f64>
Methods
impl Histogram
[src]
pub fn from_slice(v: &[f64], bins: Bins) -> Histogram
[src]
pub fn num_bins(&self) -> usize
[src]
pub fn style(self, style: &Style) -> Self
[src]
pub fn density(self) -> Self
[src]
Set the histogram to display as normalised densities
pub fn get_style(&self) -> &Style
[src]
pub fn get_values(&self) -> &[f64]
[src]
Trait Implementations
impl ContinuousRepresentation for Histogram
[src]
fn range(&self, dim: u32) -> (f64, f64)
[src]
fn to_svg(
&self,
x_axis: &ContinuousAxis,
y_axis: &ContinuousAxis,
face_width: f64,
face_height: f64
) -> Group
[src]
&self,
x_axis: &ContinuousAxis,
y_axis: &ContinuousAxis,
face_width: f64,
face_height: f64
) -> Group
fn to_text(
&self,
x_axis: &ContinuousAxis,
y_axis: &ContinuousAxis,
face_width: u32,
face_height: u32
) -> String
[src]
&self,
x_axis: &ContinuousAxis,
y_axis: &ContinuousAxis,
face_width: u32,
face_height: u32
) -> String
impl Debug for Histogram
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto 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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,