Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

colormap (MathScript Function) (Windows, Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the plots class.

Syntax

colormap(c)

colormap('default')

a = colormap

Description

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.

Details

Examples

Inputs

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.

Outputs

Name Description
a Returns the color map of the current plot. a is a matrix.

Details

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.

Examples

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)

Related Topics

image
rgbplot


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit