Member of the plots class.
colormap(c)
colormap('default')
a = colormap
Sets the color map of the current plot. colormap(c) sets the color map of the current plot to c. colormap('default') sets the color map of the current plot to the default.
| Name | Description |
| c | Specifies a color map matrix. c must be a matrix with three columns. The first column specifies the intensity of the red component of the color. The second column specifies the intensity of the green component of the color, and the third column specifies the intensity of the blue component of the color. Each element in c must fall in the range [0, 1]. |
| 'default' | Directs LabVIEW to set the color map of the current plot to the default. |
| Name | Description |
| a | Returns the color map of the current plot. a is a matrix. |
This function is not supported in the LabVIEW Run-Time Engine if you request an output from the function. Either do not request an output or remove this function from scripts before you build a stand-alone application or shared library.
t = 0:0.1:1;
[X, Y] = meshgrid(t);
Z = sqrt(X.^2 + Y.^2);
image(t, t, Z)
c = [0, 0, 0; 1, 0.5, 0.5];
colormap(c)