MPLOT - Fortran subroutine to plot one or more functions.
Usage:
DIMENSION X(150,N),Y(150,N),NPNTS(N)
CALL MPLOT0(IGRID, IWIDTH, JLNGTH, NSBVL, NSBHL)
CALL MPLOT1(N, X, Y, NPNTS, IOUT)
Where:
- N
- is the number of curves to be plotted. This can be
anything from one to ten.
- X
- is an array containing N sets of points to be plotted
along the abscissa.
- Y
- is an array containing points to be plotted along the
ordinate.
- NPTS
- is a vector containing the number of points in each
curve.
- IGRID
- indicates the type of background for the plot. IGRID=0
implies a blank background with plotted points. IGRID=1
indicates that the X and Y axes should be printed on the
graph along with the plotted points. IGRID=2 implies that
X and Y grid lines should be placed on the graph along
with the plotted points.
- IWIDTH
- represents the width of the graph in characters. MPLOT
plots ten characters per inch in width on the printer or
cards.
- JLNGTH
- represents the length down the page in character lengths
(e.g. one character length = 1/6 inch) of the graph.
- NSBVL
- specifies the distance between vertical grid lines.
- NSBHL
- specifies the distance between horizontal grid lines.
- IOUT
- indicates the output unit. IOUT=6 specifies the printer.
Description:
MPLOT0 and MPLOT1 are two subroutines which go together to
plot one or more graphs on an output unit.
A call to MPLOT0 specifies the type of background for the
graph. If a call to MPLOT0 is not made before a call to MPLOT1, a
standard set of parameters will be assumed. These defaults give a
graph area of ten inches with grid lines spaced one inch apart.
Copyright © 1996, Thinkage Ltd.