RHeatMap class
Il riferimento e' in inglese: viene dai commenti del sorgente di RAVAL, che dalla 2.0 ha nomi e commenti in inglese.
public sealed class RHeatMap : ControlA color map of a matrix of values, with axes and color bar.
Costruttori
RHeatMap()An empty map.
ProprietÃ
RColorScale Scale { get; set; }The color scale (Viridis).
double Min { get; set; }The value of the first color (NaN: the least of the data).
double Max { get; set; }The value of the last color (NaN: the largest of the data).
bool Smooth { get; set; }Whether the colors are blended between the values (false: squares).
string TitleX { get; set; }The title of the horizontal axis.
string TitleY { get; set; }The title of the vertical axis.
string Unit { get; set; }The unit of the values, on the color bar.
CultureInfo Culture { get; set; }How the numbers are written (invariant: the point).
string BackgroundKey { get; set; }The theme resource of the background.
string GridKey { get; set; }The theme resource of the grid.
string InkKey { get; set; }The theme resource of the texts and the frame.
double TextSize { get; set; }The size of the texts.
Rect PlotArea { get; }The area of the map in the last drawing.
(int, int) Size { get; }How many rows and columns.
Metodi
void SetValues(double[,] values, double x0, double x1, double y0, double y1)The values [row, column], the rows from y0 at the bottom to y1 at the top, the columns from x0 to x1 (the edges of the matrix).
(double, double) Limits()The ends of the scale: Min and Max, or those of the data.
double ValueAt(double x, double y)The value at a point of the plane (NaN outside the matrix).
static Color ColorOf(double t, RColorScale scale)The color of a fraction from 0 to 1 of a scale.
void SavePng(string path, double widthCm = 14, double heightCm = 9, double dpi = 300)Saves the map as PNG, the given centimetres wide and high at the given dpi (RImage).
void Render(DrawingContext ctx)Draws the map, the axes, the color bar and the value under the pointer.