ILNumerics Ultimate VS

ColormapMap Method (InArraySingle, TupleSingle, Single, NullableVector4)

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Maps all elements in A to interpolated colors from this colormap

[ILNumerics Visualization Engine]

Namespace:  ILNumerics.Drawing.Plotting
Assembly:  ILNumerics.Drawing (in ILNumerics.Drawing.dll) Version: ILNumerics Ultimate VS 4
Syntax

public RetArray<float> Map(
	InArray<float> A,
	Tuple<float, float> minMaxRange = null,
	Nullable<Vector4> NaNColor = null
)

Parameters

A
Type: ILNumericsInArraySingle
Array with elements to map, values will be taken in order of storage in A and lined up by their linear indices
minMaxRange (Optional)
Type: SystemTupleSingle, Single
[optional] If null: values in A are mapped to the range derived from the min and max values in A; otherwise val is mapped to the range given by minMaxRange.
NaNColor (Optional)
Type: SystemNullableVector4
[optional] Replacement value if no valid color could be mapped, default: DefaultNaNColor (Color.Empty; transparent)

Return Value

Type: RetArraySingle
Colors as matrix, the i-th row represents the color from the i-th element of A (linear indexing) as RGBA quadrupel (RGB components and alpha).
Remarks

This function maps the values given by A into a color computed from this colormap.

If elements in A lay outside of the range defined by minMaxRange, the color returned is clamped to that range.

If elements in A are not a number (NaN) the color defined by NaNColor is returned. If no NaNColor was defined in the call to Map(InArraySingle, TupleSingle, Single, NullableVector4) the default NaN color as defined by DefaultNaNColor is returned.

[ILNumerics Visualization Engine]

See Also

Reference

Other Resources