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

figure (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

figure

figure(a)

figure(name1, value1, ..., nameN, valueN)

obj = figure

obj = figure(a)

obj = figure(name1, value1, ..., nameN, valueN)

Description

Generates a new plot window or activates a plot window you create with commands from the plots class. figure generates a new plot window for the next plot command. figure(a) makes plot a the current plot. figure(name1, value1, ..., nameN, valueN) sets the plot window attributes for the new or current plot window according to the attribute names and values you specify.

Details

Examples

Inputs

Name Description
a Specifies the reference to the plot window. If plot window a exists, figure(a) makes that plot window visible and current. If plot window a does not exist, figure(a) creates a new plot window and assigns it the number a. If a is not a valid reference, LabVIEW returns an error.
name Specifies the name of the attribute. name is a string.
value Specifies the value of the attribute.

Outputs

Name Description
obj Returns the reference to the current plot window. obj is a reference to a plot window.

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

X = 0:1:10;
plot(X)
figure
Y = X.*X;
plot(Y)

obj = figure;
set(obj, 'Color', 'g', 'Name', 'My MathScript Plot', 'NumberTitle', 'off')

t = 0:0.1:2*pi;
obj1 = figure('Position', [50, 500, 500, 400]);
plot(t, sin(t));
obj2 = figure;
plot(t, cos(t));
p = get(obj1, 'Position');
set(obj2, 'Position', [p(1) + p(3), p(2), p(3), p(4)]);

Related Topics

close
gcf
get
plot
plot3
set
shg
subplot
surf


Resources


 

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