pub struct HeatmapStyle {
pub v_min: f32,
pub v_max: f32,
pub colormap: u32,
pub auto_scale: bool,
pub show_grid: bool,
pub colorbar: bool,
}Expand description
Dense row-major heatmap style.
Donor: oa::plot::HeatmapStyle.
Fields§
§v_min: f32§v_max: f32§colormap: u32Colormap index evaluated by the shared draw_heatmap kernel:
0 = plasma, 1 = viridis (default), 2 = blue-white-orange diverging,
3 = grayscale.
auto_scale: boolScale v_min/v_max automatically from data.
Only the host heatmap path can inspect values; the device-resident
heatmap_matrix path requires an explicit v_min/v_max range.
show_grid: boolDraw a thin grid between cells.
colorbar: boolReserve a strip at the right of the cell for a value-ramp colorbar with min/mid/max labels.
Trait Implementations§
Source§impl Clone for HeatmapStyle
impl Clone for HeatmapStyle
Source§impl Debug for HeatmapStyle
impl Debug for HeatmapStyle
Auto Trait Implementations§
impl Forget for HeatmapStyle
impl Freeze for HeatmapStyle
impl Move for HeatmapStyle
impl RefUnwindSafe for HeatmapStyle
impl Send for HeatmapStyle
impl Sync for HeatmapStyle
impl Unpin for HeatmapStyle
impl UnsafeUnpin for HeatmapStyle
impl UnwindSafe for HeatmapStyle
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