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

subplot

Version:
    Last Modified: January 9, 2017

    Generates a plot window with multiple plots. subplot(a,b,c) generates a plot window with a rows and b columns of plots.

    spd-note-note
    Note  

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

    Syntax

    subplot(a, b, c)
    subplot(a b c)

    Inputs

    a

    Number of rows of plots to generate. a is a positive integer.

    b

    Number of columns of plots to generate. b is a positive integer.

    c

    Active plot according to the row-wise linear order of the plots. c is a positive integer between 1 and a*b.

    abc

    The number of rows, i, the number of columns, j, to generate, as well as the active plot, k. i, j, and k are positive integers between 1 and 9.

    X = 0:10;
    Y = X.*X;
    subplot(2, 1, 1)
    plot(X)
    subplot(2, 1, 2)
    plot(Y)

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: Not supported


    Recently Viewed Topics