# figure

Version:

Generates a new plot window or activates a plot window. figure generates a new plot window for the next plot command. figure(a) makes plot a the current plot.

Note

You can only use the figure function in the MathScript Console.

## Syntax

figure
figure(a)
obj = figure
obj = figure(a)

## a

Reference to the plot window. a can be a reference or a positive integer. 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 a positive integer. figure(a) returns an error if a is an invalid reference.

## obj

Reference to the current plot window.

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

Where This Node Can Run:

Desktop OS: Windows

FPGA: Not supported