pub struct HistogramPlotOptions {
pub base: BasePlotOptions,
pub x_axis: AxisOptions,
pub histogram_filled: bool,
pub num_bins: usize,
pub gate_colors: Vec<(u8, u8, u8)>,
pub baseline_separation: f32,
pub scale_to_peak: bool,
pub line_width: f64,
}Expand description
Options for histogram plots
Supports single and overlaid histograms with filled or line-only style.
§Example
use flow_plots::options::{BasePlotOptions, HistogramPlotOptions};
let options = HistogramPlotOptions::new()
.base(BasePlotOptions::new().width(800u32).height(600u32).build()?)
.histogram_filled(true)
.num_bins(50usize)
.build()?;Fields§
§base: BasePlotOptionsBase plot options (layout, dimensions, etc.)
x_axis: AxisOptionsX-axis configuration (data range, transform, label)
histogram_filled: boolDraw filled histogram (AreaSeries) vs line-only (LineSeries)
num_bins: usizeNumber of bins when binning raw values. Ignored for pre-binned data.
gate_colors: Vec<(u8, u8, u8)>Colors for each gate/series in overlaid histograms. Indexed by gate_id.
baseline_separation: f32Y-offset between baselines for overlaid histograms. 0 = no separation (overlap).
scale_to_peak: boolScale each overlaid series to its modal peak (max count = 1.0) for visual comparison
line_width: f64Line width for unfilled histogram (when histogram_filled is false)
Implementations§
Source§impl HistogramPlotOptions
impl HistogramPlotOptions
Sourcepub fn new() -> HistogramPlotOptionsBuilder
pub fn new() -> HistogramPlotOptionsBuilder
Create a new builder for HistogramPlotOptions
Trait Implementations§
Source§impl Clone for HistogramPlotOptions
impl Clone for HistogramPlotOptions
Source§fn clone(&self) -> HistogramPlotOptions
fn clone(&self) -> HistogramPlotOptions
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 moreSource§impl Debug for HistogramPlotOptions
impl Debug for HistogramPlotOptions
Source§impl Default for HistogramPlotOptions
impl Default for HistogramPlotOptions
Source§impl PlotOptions for HistogramPlotOptions
impl PlotOptions for HistogramPlotOptions
Source§fn base(&self) -> &BasePlotOptions
fn base(&self) -> &BasePlotOptions
Get a reference to the base plot options
Auto Trait Implementations§
impl Freeze for HistogramPlotOptions
impl RefUnwindSafe for HistogramPlotOptions
impl Send for HistogramPlotOptions
impl Sync for HistogramPlotOptions
impl Unpin for HistogramPlotOptions
impl UnsafeUnpin for HistogramPlotOptions
impl UnwindSafe for HistogramPlotOptions
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().