colormap.q

Import colormap.q if you wish to use MATLAB style color maps for visualization using the imshow function.

Summary
colormap.qImport colormap.q if you wish to use MATLAB style color maps for visualization using the imshow function.
Functions
colormapChanges the current color map to the specified name.
imshowAn overload of the imshow function; to allow color maps to be applied

Functions

colormap

Changes the current color map to the specified name.

function y = colormap(name : string)

Parameters

namethe name of the colormap.  Accepted color maps are “jet”, “hsv”, “hot”, “hotter”, “cool”, “rgb”, “cmy”, “gray”.  The default color map is “yet”.

Returns

ya matrix of size Nx3 containing RGB-values of the colors of the map.  Note that the number of components N can vary.

imshow

An overload of the imshow function; to allow color maps to be applied

imshow(x : mat)
imshow(x : mat, range : vec)
Close