From 12:00 PM - 4:00 PM CST on Thursday, October 18, ni.com will be undergoing system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Table Of Contents

figure

Version:
    Last Modified: January 9, 2017

    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.

    spd-note-note
    Note  

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

    Syntax

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

    Inputs

    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.

    Outputs

    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


    Recently Viewed Topics