graph(1) CLIX graph(1)
NAME
graph - Draws a graph
SYNOPSIS
graph [flag ... ]
FLAGS
-a Supplies abscissas automatically (they are missing from the
input); spacing is given by the next argument (default 1). A
second optional argument is the starting point for automatic
abscissas (default 0 or lower limit given by -x).
-b Breaks (disconnects) the graph after each label in the input.
-c Specifies a character string as the default label for each point.
-g Specifies the grid style, 0 no grid, 1 frame with ticks, 2 full
grid (default).
-l Specifies the label for graph.
-m Specifies the mode (style) of connecting lines: 0 disconnected, 1
connected (default). Some devices give distinguishable line
styles for other small integers (for example, the Tektronix 4014:
2=dotted, 3=dash-dot, 4=short-dash, 5=long-dash).
-s Saves the screen (does not erase before plotting).
-x [l] Specifies that if l is present, the x axis is logarithmic. Next
1 (or 2) arguments are lower (and upper) x limits. The third
argument, if present, is grid spacing on x axis. Normally these
quantities are determined automatically.
-y [l] Similarly for y.
-h Specifies a fraction of space for height.
-w Similarly for width.
-r Specifies a fraction of space to move right before plotting.
-u Similarly to move up before plotting.
-t Transposes horizontal and vertical axes. (Flag -x now applies to
the vertical axis.)
DESCRIPTION
2/94 - Intergraph Corporation 1
graph(1) CLIX graph(1)
The graph command with no flags takes pairs of numbers from stdin as
abscissas and ordinates of a graph. Successive points are connected by
straight lines. The graph is encoded on stdout 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 flag
is present. If a specified lower limit exceeds the upper limit, the axis
is reversed.
EXAMPLES
1. To create a graph with a grid style of frame with tics, and labels it
``My GRAPH'':
graph -g1 -l"My GRAPH"
2. To create a graph with a logarithmic axis, switching the x- and y-
axes:
graph -xl -t -h0.75 -w0.5
The graph is to take up .75 of the height and half of the width.
NOTES
The command graph stores all points internally and drops those for which
there is no room.
Segments that run out of bounds are dropped, not windowed.
Logarithmic axes may not be reversed.
DIAGNOSTICS
graph: error in arguments
An invalid or conflicting argument was given.
EXIT VALUES
The graph command returns a value of 1 if an error occurs.
RELATED INFORMATION
Commands: graphics(1), spline(1), tplot(1)
2 Intergraph Corporation - 2/94