pub struct PlotHeatmap { /* private fields */ }
Expand description
Struct to provide functionality for creating headmaps.
Implementations§
Source§impl PlotHeatmap
impl PlotHeatmap
Sourcepub fn new(label: &str) -> Self
pub fn new(label: &str) -> Self
Create a new heatmap to be shown. Uses the same defaults as the C++ version (see code for
what those are), aside from the scale_min
and scale_max
values, which default to
None
, which is interpreted as “automatically make the scale fit the data”. Does not draw
anything yet.
Sourcepub fn with_scale(self, scale_min: f64, scale_max: f64) -> Self
pub fn with_scale(self, scale_min: f64, scale_max: f64) -> Self
Specify the scale for the shown colors by minimum and maximum value.
Sourcepub fn with_label_format(self, label_format: Option<&str>) -> Self
pub fn with_label_format(self, label_format: Option<&str>) -> Self
Specify the label format for hovered data points.. None
means no label is shown.
Sourcepub fn with_drawing_area(
self,
lower_left: ImPlotPoint,
upper_right: ImPlotPoint,
) -> Self
pub fn with_drawing_area( self, lower_left: ImPlotPoint, upper_right: ImPlotPoint, ) -> Self
Specify the drawing area as the lower left and upper right point
Auto Trait Implementations§
impl Freeze for PlotHeatmap
impl RefUnwindSafe for PlotHeatmap
impl Send for PlotHeatmap
impl Sync for PlotHeatmap
impl Unpin for PlotHeatmap
impl UnwindSafe for PlotHeatmap
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