Struct rstk::chart::histogram::TkHistogramDefinition
source · pub struct TkHistogramDefinition { /* private fields */ }
Expand description
Intermediate definition for a histogram
Implementations§
source§impl TkHistogramDefinition
impl TkHistogramDefinition
Methods to set options for histogram - call ‘plot’ method at end to finally create the chart.
sourcepub fn x_labels(&mut self, labels: &[&str]) -> &mut Self
pub fn x_labels(&mut self, labels: &[&str]) -> &mut Self
Adds custom labels for the x-axis.
This will replace the step value for the x-axis. Labels which are numbers will be placed according to the given scale, and otherwise are evenly distributed.
sourcepub fn y_labels(&mut self, labels: &[&str]) -> &mut Self
pub fn y_labels(&mut self, labels: &[&str]) -> &mut Self
Adds custom labels for the y-axis.
This will replace the step value for the y-axis. Labels which are numbers will be placed according to the given scale, and otherwise are evenly distributed.
sourcepub fn plot(&self) -> TkHistogram
pub fn plot(&self) -> TkHistogram
Completes the definition of a histogram and creates the chart.
Trait Implementations§
source§impl Clone for TkHistogramDefinition
impl Clone for TkHistogramDefinition
source§fn clone(&self) -> TkHistogramDefinition
fn clone(&self) -> TkHistogramDefinition
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TkHistogramDefinition
impl Debug for TkHistogramDefinition
source§impl PartialEq for TkHistogramDefinition
impl PartialEq for TkHistogramDefinition
source§fn eq(&self, other: &TkHistogramDefinition) -> bool
fn eq(&self, other: &TkHistogramDefinition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TkHistogramDefinition
Auto Trait Implementations§
impl RefUnwindSafe for TkHistogramDefinition
impl Send for TkHistogramDefinition
impl Sync for TkHistogramDefinition
impl Unpin for TkHistogramDefinition
impl UnwindSafe for TkHistogramDefinition
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