Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

colormap (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

Owning Class: plots

Requires: MathScript RT Module

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.

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

The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine No (returns error or is ignored)
Supported on RT targets No

Examples

t = 0:0.1:1;
[X, Y] = meshgrid2d(t);
Z = sqrt(X.^2 + Y.^2);
image(t, t, Z)
c = [0, 0, 0; 1, 0.5, 0.5];
colormap(c)

Related Topics

colormapplot
image


 

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