pub struct HeatmapPlotF32<'a> { /* private fields */ }Expand description
Float version of heatmap for better performance with f32 data
Implementations§
Source§impl<'a> HeatmapPlotF32<'a>
impl<'a> HeatmapPlotF32<'a>
Sourcepub fn new(label: &'a str, values: &'a [f32], rows: usize, cols: usize) -> Self
pub fn new(label: &'a str, values: &'a [f32], rows: usize, cols: usize) -> Self
Create a new f32 heatmap plot
Sourcepub fn with_scale(self, min: f64, max: f64) -> Self
pub fn with_scale(self, min: f64, max: f64) -> Self
Set the color scale range (min, max)
Sourcepub fn with_label_format(self, fmt: Option<&'a str>) -> Self
pub fn with_label_format(self, fmt: Option<&'a str>) -> Self
Set the label format for values
Sourcepub fn with_bounds(self, min_x: f64, min_y: f64, max_x: f64, max_y: f64) -> Self
pub fn with_bounds(self, min_x: f64, min_y: f64, max_x: f64, max_y: f64) -> Self
Set the drawing area bounds in plot coordinates
Sourcepub fn with_flags(self, flags: HeatmapFlags) -> Self
pub fn with_flags(self, flags: HeatmapFlags) -> Self
Set heatmap flags for customization
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 HeatmapPlotF32<'a>
impl<'a> RefUnwindSafe for HeatmapPlotF32<'a>
impl<'a> Send for HeatmapPlotF32<'a>
impl<'a> Sync for HeatmapPlotF32<'a>
impl<'a> Unpin for HeatmapPlotF32<'a>
impl<'a> UnwindSafe for HeatmapPlotF32<'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