pub struct Histogram2DPlot<'a> { /* private fields */ }Expand description
Builder for 2D histogram plots (bivariate histograms as heatmaps)
Implementations§
Source§impl<'a> Histogram2DPlot<'a>
impl<'a> Histogram2DPlot<'a>
Sourcepub fn new(label: &'a str, x_values: &'a [f64], y_values: &'a [f64]) -> Self
pub fn new(label: &'a str, x_values: &'a [f64], y_values: &'a [f64]) -> Self
Create a new 2D histogram plot with the given label and data
Sourcepub fn with_bins(self, x_bins: i32, y_bins: i32) -> Self
pub fn with_bins(self, x_bins: i32, y_bins: i32) -> Self
Set the number of bins for both X and Y axes
Sourcepub fn with_range(self, x_min: f64, x_max: f64, y_min: f64, y_max: f64) -> Self
pub fn with_range(self, x_min: f64, x_max: f64, y_min: f64, y_max: f64) -> Self
Set the data range for binning
Sourcepub fn with_range_struct(self, range: ImPlotRect) -> Self
pub fn with_range_struct(self, range: ImPlotRect) -> Self
Set the data range using ImPlotRect
Sourcepub fn with_flags(self, flags: HistogramFlags) -> Self
pub fn with_flags(self, flags: HistogramFlags) -> Self
Set histogram flags for customization
Sourcepub fn no_outliers(self) -> Self
pub fn no_outliers(self) -> Self
Exclude outliers from normalization
Sourcepub fn column_major(self) -> Self
pub fn column_major(self) -> Self
Use column-major data ordering
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Histogram2DPlot<'a>
impl<'a> RefUnwindSafe for Histogram2DPlot<'a>
impl<'a> Send for Histogram2DPlot<'a>
impl<'a> Sync for Histogram2DPlot<'a>
impl<'a> Unpin for Histogram2DPlot<'a>
impl<'a> UnwindSafe for Histogram2DPlot<'a>
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