tabstr changed to indentprefix to be Sun compatible
[unix-history] / usr / src / usr.bin / graph / graph.1
CommitLineData
3fe17fc7 1.\" @(#)graph.1 6.1 (Berkeley) %G%
43f216ce 2.\"
3fe17fc7 3.TH GRAPH 1G ""
43f216ce
KM
4.AT 3
5.SH NAME
6graph \- draw a graph
7.SH SYNOPSIS
8.B graph
9[ option ] ...
10.SH DESCRIPTION
11.I Graph
12with no options takes pairs of numbers from the
13standard input as abscissas and
14ordinates of a graph.
15Successive points are connected by straight lines.
16The graph is encoded on the standard output
17for display by the
604ebb9a 18.IR plot (1G)
43f216ce
KM
19filters.
20.PP
21If the coordinates of a point are followed by
22a nonnumeric string, that string is printed as a
23label beginning on the point.
24Labels may be surrounded with quotes "...", in
25which case they may be empty or contain blanks
26and numbers;
27labels never contain newlines.
28.PP
29The following options are recognized,
30each as a separate argument.
31.TP
32.B \-a
33Supply abscissas automatically (they are missing from
34the input); spacing is given by the next
35argument (default 1).
36A second optional argument is the starting point for
37automatic abscissas (default 0 or lower limit given by
38.BR \-x ).
39.TP
40.B \-b
41Break (disconnect) the graph after each label in the input.
42.TP
43.B \-c
44Character string given by next argument
45is default label for each point.
46.TP
47.B \-g
48Next argument is grid style,
490 no grid, 1 frame with ticks, 2 full grid (default).
50.TP
51.B \-l
52Next argument is label for graph.
53.TP
54.B \-m
55Next argument is mode (style)
56of connecting lines:
570 disconnected, 1 connected (default).
58Some devices give distinguishable line styles
59for other small integers.
60.TP
61.B \-s
62Save screen, don't erase before plotting.
63.TP
64\fB\-x\fR [ \fBl\fR ]
65If
66.B l
67is present, x axis is logarithmic.
68Next 1 (or 2) arguments are lower (and upper)
69.IR x ""
70limits.
71Third argument, if present, is grid spacing on
72.I x
73axis.
74Normally these quantities are determined automatically.
75.TP
76\fB\-y\fR [ \fBl\fR ]
77Similarly for
78.IR y .
79.TP
80.B \-h
81Next argument is fraction of space for height.
82.TP
83.B \-w
84Similarly for width.
85.TP
86.B \-r
87Next argument is fraction of space to move right before plotting.
88.TP
89.B \-u
90Similarly to move up before plotting.
91.TP
92.B \-t
93Transpose horizontal and vertical axes.
94(Option
95.B \-x
96now applies to the vertical axis.)
97.PP
98A legend indicating grid range is produced
99with a grid unless the
100.B \-s
101option is present.
102.PP
103If a specified lower limit exceeds the upper limit,
104the axis
105is reversed.
106.SH "SEE ALSO"
604ebb9a 107spline(1G), plot(1G)
43f216ce
KM
108.SH BUGS
109.I Graph
110stores all points internally and drops those for which
111there isn't room.
112.br
113Segments that run out of bounds are dropped, not windowed.
114.br
115Logarithmic axes may not be reversed.