[−][src]Struct plotlib::repr::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: HistogramBins) -> Histogram
[src]
pub fn num_bins(&self) -> usize
[src]
pub fn style(self, style: &BoxStyle) -> Self
[src]
pub fn density(self) -> Self
[src]
Set the histogram to display as normalised densities
pub fn get_style(&self) -> &BoxStyle
[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 legend_svg(&self) -> Option<Group>
[src]
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
impl RefUnwindSafe for Histogram
impl Send for Histogram
impl Sync for Histogram
impl Unpin for Histogram
impl UnwindSafe for Histogram
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,