Struct implot::PlotHeatmap[][src]

pub struct PlotHeatmap { /* fields omitted */ }

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]

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.