graph(1G) graph(1G)NAME graph - draw 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]] DESCRIPTION graph with no flag options takes pairs of numbers from the standard input as abscissas and ordinates of a graph. Suc- cessive points are connected by straight lines. The graph is encoded on the standard output for display by the tplot(1G) 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. The following flag options are recognized, each as a separate argument: -a [sp] [st] Supply abscissas automatically (they are missing from the input); spacing is given by sp (default 1). st is the starting point for automatic abscissas (default 0 or the lower limit given by -x). -b Break (disconnect) the graph after each label in the input. -c label Character string given by label is the default la- bel for each point. -g [style] style is grid style, where 0=no grid, 1=frame with ticks, 2=full grid (default). -h hspace hspace is the fraction of the space for height. -l title title is the label for the graph. -m [mode] mode is the mode (style) of connecting lines: 0=disconnected, 1=connected (default). Some dev- ices give distinguishable line styles for other small integers (e.g., the Tektronix 4014: 2=dot- ted, 3=dash-dot, 4=short-dash, 5=long-dash). -r rspace rspace is the fraction of the space to move right before plotting. -s Save screen, don't erase before plotting. -t Transpose horizontal and vertical axes. -u uspace uspace is the fraction of the space to move up be- fore plotting. -w wspace wspace is the fraction of the space for width. (-x now applies to the vertical axis.) April, 1990 1
graph(1G) graph(1G)-x [l] [a] [b] [c] 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] Similarly for the yaxis. A legend indicating grid range is produced with a grid un- less the -s flag option is present. If a specified lower limit exceeds the upper limit, the axis is reversed. FILES /usr/bin/graph SEE ALSO spline(1G), tplot(1G). BUGS graph 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. 2 April, 1990