MAT PLOT Statement

MAT PLOT POINTS: matplotarray

MAT PLOT LINES: matplotarray

MAT PLOT AREA: matplotarray

The MAT PLOT statements all require a single matplotarray, which must be a two-dimensional numeric array that has

two (or more) columns. Each of the rows is interpreted as a single point. The first column is the x-coordinate of the

point, and the second column is the y-coordinate. (If the array has more than two columns, the last column is the

y-coordinate.)

MAT PLOT POINTS plots the points in the array, just as if the points were supplied with a MAT PLOT statement

naming the array elements. Thus, the following two statements are equivalent:

MAT PLOT POINTS: x PLOT POINTS: x(1,1),x(1,2); ...;

x(n,1),x(n,2)

MAT PLOT LINES plots the line segments connecting the points in the array. Thus, the following two statements are

equivalent:

MAT PLOT LINES: x PLOT LINES: x(1,1),x(1,2); ...;

x(n,1),x(n,2)

The line segments plotted may fail to represent a closed polygon if, for example, the last point does not repeat one of

the earlier points.

MAT PLOT AREA plots the polygon represented by the points and fills it with the current foreground color. Thus, the

following two statements are equivalent:

MAT PLOT AREA: x PLOT AREA: x(1,1),x(1,2); ...;

x(n,1),x(n,2)

It is not necessary for the last point to repeat the first point, as the MAT PLOT AREA statement supplies the line

segment joining the first and last points.

Exception:

6401 Must have two or more columns for MAT PLOT.

-11000 Can't do graphics on this computer.