Creates a Heatmap from a double[,] and a Colormap.

Namespace: Imsl.Chart2D
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.0.0

Syntax

C#
public Heatmap(
	AxisXY axis,
	double xmin,
	double xmax,
	double ymin,
	double ymax,
	double zmin,
	double zmax,
	double[,] data,
	Colormap colormap
)
Visual Basic (Declaration)
Public Sub New ( _
	axis As AxisXY, _
	xmin As Double, _
	xmax As Double, _
	ymin As Double, _
	ymax As Double, _
	zmin As Double, _
	zmax As Double, _
	data As Double(,), _
	colormap As Colormap _
)
Visual C++
public:
Heatmap(
	AxisXY^ axis, 
	double xmin, 
	double xmax, 
	double ymin, 
	double ymax, 
	double zmin, 
	double zmax, 
	array<double,2>^ data, 
	Colormap^ colormap
)

Parameters

axis
Type: Imsl.Chart2D..::.AxisXY
An AxisXY object which specifes the parent of this node.
xmin
Type: System..::.Double
A double which specifies the minimum x-value of the color data.
xmax
Type: System..::.Double
A double which specifies the maximum x-value of the color data.
ymin
Type: System..::.Double
A double which specifies the minimum y-value of the color data.
ymax
Type: System..::.Double
A double which specifies the maximum y-value of the color data.
zmin
Type: System..::.Double
A double which specifies the data value that corresponds to the initial (t=0) value in the Colormap.
zmax
Type: System..::.Double
A double which specifies the data value that corresponds to the final (t=1) value in the Colormap.
data
Type: array< System..::.Double ,2>[,](,)[,]
A double[,] containing the data values.
colormap
Type: Imsl.Chart2D..::.Colormap
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