subplot [plot]
— Function File: subplot (rows, cols, index)
— Function File: subplot (rcn)

Sets the Grace plot in multiplot mode and plots in location given by index (there are cols by rows subwindows).

Input:

rows
Number of rows in subplot grid.
columns
Number of columns in subplot grid.
index
Index of subplot where to make the next plot.

If only one argument is supplied, then it must be a three digit value specifying the location in digits 1 (rows) and 2 (columns) and the plot index in digit 3.

The plot index runs row-wise. First all the columns in a row are filled and then the next row is filled.

For example, a plot with 4 by 2 grid will have plot indices running as follows:

          +——+——+——+——+
          |  1  |  2  |  3  |  4  |
          +——+——+——+——+
          |  5  |  6  |  7  |  8  |
          +——+——+——+——+