pub struct HistogramPlotOptionsBuilder { /* private fields */ }Expand description
Builder for HistogramPlotOptions.
Implementations§
Source§impl HistogramPlotOptionsBuilder
impl HistogramPlotOptionsBuilder
Sourcepub fn base<VALUE: Into<BasePlotOptions>>(&mut self, value: VALUE) -> &mut Self
pub fn base<VALUE: Into<BasePlotOptions>>(&mut self, value: VALUE) -> &mut Self
Base plot options (layout, dimensions, etc.)
Sourcepub fn x_axis<VALUE: Into<AxisOptions>>(&mut self, value: VALUE) -> &mut Self
pub fn x_axis<VALUE: Into<AxisOptions>>(&mut self, value: VALUE) -> &mut Self
X-axis configuration (data range, transform, label)
Sourcepub fn histogram_filled<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn histogram_filled<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Draw filled histogram (AreaSeries) vs line-only (LineSeries)
Sourcepub fn num_bins<VALUE: Into<usize>>(&mut self, value: VALUE) -> &mut Self
pub fn num_bins<VALUE: Into<usize>>(&mut self, value: VALUE) -> &mut Self
Number of bins when binning raw values. Ignored for pre-binned data.
Sourcepub fn gate_colors<VALUE: Into<Vec<(u8, u8, u8)>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn gate_colors<VALUE: Into<Vec<(u8, u8, u8)>>>( &mut self, value: VALUE, ) -> &mut Self
Colors for each gate/series in overlaid histograms. Indexed by gate_id.
Sourcepub fn baseline_separation<VALUE: Into<f32>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn baseline_separation<VALUE: Into<f32>>( &mut self, value: VALUE, ) -> &mut Self
Y-offset between baselines for overlaid histograms. 0 = no separation (overlap).
Sourcepub fn scale_to_peak<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn scale_to_peak<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Scale each overlaid series to its modal peak (max count = 1.0) for visual comparison
Sourcepub fn line_width<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
pub fn line_width<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
Line width for unfilled histogram (when histogram_filled is false)
Sourcepub fn build(
&self,
) -> Result<HistogramPlotOptions, HistogramPlotOptionsBuilderError>
pub fn build( &self, ) -> Result<HistogramPlotOptions, HistogramPlotOptionsBuilderError>
Trait Implementations§
Source§impl Clone for HistogramPlotOptionsBuilder
impl Clone for HistogramPlotOptionsBuilder
Source§fn clone(&self) -> HistogramPlotOptionsBuilder
fn clone(&self) -> HistogramPlotOptionsBuilder
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for HistogramPlotOptionsBuilder
impl RefUnwindSafe for HistogramPlotOptionsBuilder
impl Send for HistogramPlotOptionsBuilder
impl Sync for HistogramPlotOptionsBuilder
impl Unpin for HistogramPlotOptionsBuilder
impl UnsafeUnpin for HistogramPlotOptionsBuilder
impl UnwindSafe for HistogramPlotOptionsBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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 moreSource§impl<T> Key for Twhere
T: Clone,
impl<T> Key for Twhere
T: Clone,
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().