Member of the plots class.
subplot(a, b, c)
subplot(ijk)
obj = subplot(a, b, c)
obj = subplot(ijk)
Generates rows and columns of plots.
| 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. |
| Name | Description |
| obj | Returns the reference to the current plot area. obj is a reference to a plot area. |
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: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')