Click or drag to resize
Heatmap Constructor (AxisXY, Double, Double, Double, Double, Double, Double, Double, Colormap)
Creates a Heatmap from a double[,] and a Colormap.

Namespace: Imsl.Chart2D
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntax
public Heatmap(
	AxisXY axis,
	double xmin,
	double xmax,
	double ymin,
	double ymax,
	double zmin,
	double zmax,
	double[,] data,
	Colormap colormap
)

Parameters

axis
Type: Imsl.Chart2DAxisXY
An AxisXY object which specifes the parent of this node.
xmin
Type: SystemDouble
A double which specifies the minimum x-value of the color data.
xmax
Type: SystemDouble
A double which specifies the maximum x-value of the color data.
ymin
Type: SystemDouble
A double which specifies the minimum y-value of the color data.
ymax
Type: SystemDouble
A double which specifies the maximum y-value of the color data.
zmin
Type: SystemDouble
A double which specifies the data value that corresponds to the initial (t=0) value in the Colormap.
zmax
Type: SystemDouble
A double which specifies the data value that corresponds to the final (t=1) value in the Colormap.
data
Type: SystemDouble
A double[,] containing the data values.
colormap
Type: Imsl.Chart2DColormap
Maps the values in data to colors.
Remarks

The x-interval (xmin, xmax) is uniformly divided and mapped into the first index of data. The y-interval (ymin, ymax) is uniformly divided and mapped into the second index of data. So, the value of data[0,0] is used to determine the color of the cell whose lower left corner is (xmin, ymin).

If a cell has a data value equal to t then its color is the value of the colormap at s, where

 s=\frac{t-\mbox{zmin}}{\mbox{zmax}-\mbox{zmin}}
.

See Also