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

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

subplot(a, b, c)

subplot(ijk)

obj = subplot(a, b, c)

obj = subplot(ijk)

Description

Generates rows and columns of plots.

Details

Examples

Inputs

Name Description
a Specifies the number of rows of plots to generate. a is a positive integer.
b Specifies the number of columns of plots to generate. b is a positive integer.
c Specifies the active plot according to the row-wise linear order of the plots. c is a positive integer between 1 and a*b.
ijk Specifies the number of rows, i, and 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.

Outputs

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

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:10;
Y = X.*X;
subplot(2, 1, 1)
plot(X)
subplot(212)
plot(Y)

obj = subplot(212);
set(obj, 'Color', 'c', 'XColor', 'm', 'YColor', 'm')
a = subplot(211);
set(a, 'Color', 'm', 'XColor', 'c', 'YColor', 'c')

Related Topics

figure
plot
set


Resources


 

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