Struct implot::PlotHeatmap [−][src]
Struct to provide functionality for creating headmaps.
Implementations
impl PlotHeatmap
[src]
pub fn new(label: &str) -> Self
[src]
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.
pub fn with_scale(mut self: Self, scale_min: f64, scale_max: f64) -> Self
[src]
Specify the scale for the shown colors by minimum and maximum value.
pub fn with_label_format(mut self: Self, label_format: Option<&str>) -> Self
[src]
Specify the label format for hovered data points.. None
means no label is shown.
pub fn with_drawing_area(
mut self: Self,
lower_left: ImPlotPoint,
upper_right: ImPlotPoint
) -> Self
[src]
mut self: Self,
lower_left: ImPlotPoint,
upper_right: ImPlotPoint
) -> Self
Specify the drawing area as the lower left and upper right point
pub fn plot(&self, values: &[f64], number_of_rows: u32, number_of_cols: u32)
[src]
Plot the heatmap, with the given values (assumed to be in row-major order), number of rows and number of columns.
Auto Trait Implementations
impl RefUnwindSafe for PlotHeatmap
[src]
impl Send for PlotHeatmap
[src]
impl Sync for PlotHeatmap
[src]
impl Unpin for PlotHeatmap
[src]
impl UnwindSafe for PlotHeatmap
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,