 |
Index for Section 1 |
|
 |
Alphabetical listing for G |
|
graph(1)
NAME
graph - Draws a graph.
SYNOPSIS
graph [option...]
Note
This command will be retired in a future release.
OPTIONS
-a Supplies abscissas automatically and uses the next two arguments to set
the spacing and starting point. Spacing is given by the next argument
(default 1). A second optional argument is the starting point for
automatic abscissas (default 0 or the lower limit given by -x).
-b Breaks the graph after each label in the input.
-c Uses the specified string (next argument) as the label.
-g Uses the specified number (next argument) in setting up the grid style:
0 (no grid), 1 (frame with ticks), and 2 (full grid). The default is
2.
-h Uses the specified number (next argument) as the fraction of space for
height.
-l Uses the specified string (next argument) as the graph label.
-m Uses the specified number (next argument) in setting up the line mode:
0 (disconnected) and 1 (connected). The default is 1.
-r Uses the specified number (next argument) as the fraction of space to
right before plotting.
-s Saves the screen before plotting. (No erase)
-t Transposes the vertical and horizontal axes.
-u Uses the specified number (next argument) as the fraction of space to
move up before plotting.
-w Uses the specified number (next argument) as the fraction of space for
width.
-x [ l ]
Determines the x axis logarithmically. The next two arguments after
the l argument determine lower and upper x limits respectively. The
third argument determines grid spacing on x axis.
-y [ l ]
Determines the y axis logarithmically. The next two arguments after
the l argument determine lower and upper y limits respectively. The
third argument determines grid spacing on y axis.
DESCRIPTION
The graph command 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 plot filters.
If the coordinates of a point are followed by a nonnumeric string, that
string is printed as a label beginning on the point. Labels can be
surrounded with quotation marks ("..."), in which case they can be empty or
contain blanks and numbers. Labels never contain new lines.
A legend indicating the 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.
RESTRICTIONS
The graph command 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 cannot be reversed.