Member of the plots class.
figure
figure(a)
figure(name1, value1, ..., nameN, valueN)
obj = figure
obj = figure(a)
obj = figure(name1, value1, ..., nameN, valueN)
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.
| 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. |
| Name | Description |
| obj | Returns the reference to the current plot window. obj is a reference to a plot window. |
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.
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)]);