.th GRAPH I 5/31/77 .sh NAME graph \*- draw a graph .sh SYNOPSIS .bd graph [ option ] ... \*v plotter .sh DESCRIPTION .it Graph with no options takes pairs of numbers from the standard input as abscissas and ordinates of a graph. The graph is written on the standard output to be piped to the .it plotter program for a particular device; see .it plot\^\c (I). .s3 If the coordinates of a point are followed by a nonnumeric string, that string is printed as a label beginning at the point. Labels may be surrounded with quotes "...", in which case they may contain blanks or begin with numeric characters; labels never contain newlines. .s3 The following options are recognized, each as a separate argument. .s3 .lp +5 5 \fB\*-a\fR Supply abscissas automatically (they are missing from the input); spacing is given by the next argument, or is assumed to be 1 if next argument is not a number. A second optional argument is the starting point for the automatic abscissa. .s3 .lp +5 5 \fB\*-c\fR Character string given by next argument is default label for each point. .s3 .lp +5 5 \fB\*-d\fR Omit connections between points. (Disconnect.) .s3 .lp +5 5 \fB\*-g\fIn\fR Grid style: .lp +5 0 \fIn\fR=0, no grid .lp +5 0 \fIn\fR=1, axes only .lp +5 0 \fIn\fR=2, complete grid (default). .s3 .lp +5 5 \fB\*-l\fR Next argument is label for graph. .s3 .lp +5 5 \fB\*-s\fR Save screen, don't erase before plotting. .s3 .lp +5 5 \fB\*-x\fP Next 1 (or 2) arguments are lower (and upper) \fIx\fP (abcissa) limits. Third argument, if present, is grid spacing on .it x axis. Normally these quantities are determined automatically. .s3 .lp +5 5 \fB\*-y\fR Similarly for .it y (ordinate) axis. .s3 .lp +5 5 \fB\*-h\fR Next argument is fraction of space for height. .s3 .lp +5 5 \fB\*-w\fR Similarly for width. .s3 .lp +5 5 \fB\*-r\fR Next argument is fraction of space to move right before plotting. .s3 .lp +5 5 \fB\*-u\fR Similarly to move up before plotting. .s3 .lp +5 5 \fB\*-t\fR Transpose horizontal and vertical axes. .s3 .i0 Points are connected by straight line segments in the order they appear in input. If a specified lower limit exceeds the upper limit, or if the automatic increment is negative, the graph is plotted upside down. Automatic abscissas begin with the lower \fIx\fR limit, or with 0 if no limit is specified. Labels are placed so that the center of an initial letter such as + will fall approximately on the plotting point. .sh "SEE ALSO" plot(I), spline(I) .sh BUGS .it Graph stores all points internally even when limits are explicit, so utterly enormous graphs can fail unnecessarily.