graph(1G) graph(1G)NAME graph - draws a graph SYNOPSIS graph [-a [sp] [st]] [-b] [-clabel] [-g [style]] [-h hspace] [-l title] [-m[mode]] [-r rspace] [-s] [-t] [-u uspace] [-w wspace] [-x [l] [a] [b] [c]] [-y [l] [a] [b] [c]] ARGUMENTS -a [sp] [st] Supplies abscissas automatically (they are missing from the input); spacing is given by sp (default 1). The option, st, is the starting point for automatic abscissas (default 0 or the lower limit given by the -x option. -b Breaks (disconnects) the graph after each label in the input. -clabel Specifies a character string given by label which is the default label for each point. -g [style] Specifies a grid style. where Replace style with one of the following: 0=no grid, 1=frame with ticks, and 2=full grid (default). -h hspace Specifies the fraction of the space for height. -l title Specifies the label for the graph. -m[mode] Specifies the mode (style) of connecting lines: 0=disconnected, 1=connected (default). Some devices give distinguishable line styles for other small integers (e.g., the Tektronix 4014: 2=dotted, 3=dash- dot, 4=short-dash, 5=long-dash). -r rspace Specifies the fraction of the space to move right before plotting. -s Saves the screen, don't erase before plotting. -t Transposes horizontal and vertical axes. -u uspace Specifies the fraction of the space to move up before plotting. January 1992 1
graph(1G) graph(1G)-w wspace Specifies the fraction of the space for width. (-x now applies to the vertical axis.) -x [l] [a] [b] [c] Specifies certain quantities for the x axis. If l is present, x axis is logarithmic. a (and b) are lower (and upper) x limits. c, if present, is the grid spacing on the x axis. Normally, these quantities are determined automatically. -y [l] [a] [b] [c] Specifies certain quantities for the x axis. If l is present, x axis is logarithmic. a (and b) are lower (and upper) x limits. c, if present, is the grid spacing on the x axis. Normally these quantities are determined automatically. DESCRIPTION graph with no options takes pairs of numbers from the standard input as abscissas and ordinates of a graph. Successive points are connected by straight lines. The graph is encoded on the standard output for display by the tplot filters. If the coordinates of a point are followed by a non-numeric string, that string is printed as a label beginning on the point. Labels may be surrounded with quotes ("), in which case they may be empty or contain blanks and numbers; labels never contain newlines. A legend indicating grid range is produced with a grid unless the -s option is present. If a specified lower limit exceeds the upper limit, the axis is reversed. LIMITATIONS The graph command stores all points internally and drops those for which there isn't room. Segments that run out of bounds are dropped, not windowed. Logarithmic axes may not be reversed. Options and their arguments must be delimited by at least one space. FILES /usr/bin/graph Executable file 2 January 1992
graph(1G) graph(1G)SEE ALSO spline(1G), tplot(1G) January 1992 3