1 1a8f27c3 2004-05-14 devnull .TH GRAPH 1
2 1a8f27c3 2004-05-14 devnull .CT 1 numbers graphics
4 1a8f27c3 2004-05-14 devnull graph \- draw a graph
5 1a8f27c3 2004-05-14 devnull .SH SYNOPSIS
8 1a8f27c3 2004-05-14 devnull .I option ...
10 1a8f27c3 2004-05-14 devnull .SH DESCRIPTION
12 1a8f27c3 2004-05-14 devnull with no options takes pairs of numbers from the
13 1a8f27c3 2004-05-14 devnull standard input as abscissas
14 1a8f27c3 2004-05-14 devnull .RI ( x -values)
15 1a8f27c3 2004-05-14 devnull and ordinates
16 1a8f27c3 2004-05-14 devnull .RI ( y -values)
17 1a8f27c3 2004-05-14 devnull of a graph.
18 1a8f27c3 2004-05-14 devnull Successive points are connected by straight lines.
19 1a8f27c3 2004-05-14 devnull The graph is encoded on the standard output
20 1a8f27c3 2004-05-14 devnull for display by
21 1a8f27c3 2004-05-14 devnull .IR plot (1)
24 1a8f27c3 2004-05-14 devnull If an ordinate is followed by
25 1a8f27c3 2004-05-14 devnull a nonnumeric string, that string is printed as a
26 1a8f27c3 2004-05-14 devnull label beginning on the point.
27 1a8f27c3 2004-05-14 devnull Labels may be surrounded with quotes
30 1a8f27c3 2004-05-14 devnull in which case they may be empty or contain blanks
31 1a8f27c3 2004-05-14 devnull and numbers;
32 1a8f27c3 2004-05-14 devnull labels never contain newlines.
34 1a8f27c3 2004-05-14 devnull The following options are recognized,
35 1a8f27c3 2004-05-14 devnull each as a separate argument.
38 1a8f27c3 2004-05-14 devnull Supply abscissas automatically; no
39 1a8f27c3 2004-05-14 devnull .IR x -values
40 1a8f27c3 2004-05-14 devnull appear in the input.
41 1a8f27c3 2004-05-14 devnull Spacing is given by the next
42 1a8f27c3 2004-05-14 devnull argument (default 1).
43 1a8f27c3 2004-05-14 devnull A second optional argument is the starting point for
44 1a8f27c3 2004-05-14 devnull automatic abscissas (default 0, or 1
45 1a8f27c3 2004-05-14 devnull with a log scale in
47 1a8f27c3 2004-05-14 devnull or the lower limit given by
48 1a8f27c3 2004-05-14 devnull .BR -x ).
51 1a8f27c3 2004-05-14 devnull Break (disconnect) the graph after each label in the input.
54 1a8f27c3 2004-05-14 devnull Character string given by next argument
55 1a8f27c3 2004-05-14 devnull is default label for each point.
58 1a8f27c3 2004-05-14 devnull Next argument is grid style,
59 1a8f27c3 2004-05-14 devnull 0 no grid, 1 frame with ticks, 2 full grid (default).
62 1a8f27c3 2004-05-14 devnull Next argument is a legend to title the graph.
63 1a8f27c3 2004-05-14 devnull Grid ranges
64 1a8f27c3 2004-05-14 devnull are automatically printed as part
65 1a8f27c3 2004-05-14 devnull of the title unless a
67 1a8f27c3 2004-05-14 devnull option is present.
70 1a8f27c3 2004-05-14 devnull Next argument is mode (style)
71 1a8f27c3 2004-05-14 devnull of connecting lines:
72 1a8f27c3 2004-05-14 devnull 0 disconnected, 1 connected.
73 1a8f27c3 2004-05-14 devnull Some devices give distinguishable line styles
74 1a8f27c3 2004-05-14 devnull for other small integers.
75 1a8f27c3 2004-05-14 devnull Mode \-1 (default) begins with style 1 and
76 1a8f27c3 2004-05-14 devnull rotates styles for successive curves under option
80 1a8f27c3 2004-05-14 devnull (Overlay.)
81 1a8f27c3 2004-05-14 devnull The ordinates for
83 1a8f27c3 2004-05-14 devnull superposed curves appear in the input
84 1a8f27c3 2004-05-14 devnull with each abscissa value.
85 1a8f27c3 2004-05-14 devnull The next argument is
89 3167fce5 2006-05-21 devnull Next argument is one or more of the characters
90 3167fce5 2006-05-21 devnull .B bcgkmrwy,
91 3167fce5 2006-05-21 devnull choosing pen colors by their initial letter, as in
92 3167fce5 2006-05-21 devnull .IR plot (6).
93 3167fce5 2006-05-21 devnull Successive curves will cycle through the colors in the given order.
96 1a8f27c3 2004-05-14 devnull Save screen; no new page for this graph.
101 1a8f27c3 2004-05-14 devnull is present,
102 1a8f27c3 2004-05-14 devnull .IR x -axis
103 1a8f27c3 2004-05-14 devnull is logarithmic.
104 1a8f27c3 2004-05-14 devnull Next 1 (or 2) arguments are lower (and upper)
107 1a8f27c3 2004-05-14 devnull Third argument, if present, is grid spacing on
110 1a8f27c3 2004-05-14 devnull Normally these quantities are determined automatically.
113 1a8f27c3 2004-05-14 devnull Similarly for
117 1a8f27c3 2004-05-14 devnull Make automatically determined
121 1a8f27c3 2004-05-14 devnull scales equal.
124 1a8f27c3 2004-05-14 devnull Next argument is fraction of space for height.
127 1a8f27c3 2004-05-14 devnull Similarly for width.
130 1a8f27c3 2004-05-14 devnull Next argument is fraction of space to move right before plotting.
133 1a8f27c3 2004-05-14 devnull Similarly to move up before plotting.
136 1a8f27c3 2004-05-14 devnull Transpose horizontal and vertical axes.
139 1a8f27c3 2004-05-14 devnull now applies to the vertical axis.)
141 1a8f27c3 2004-05-14 devnull If a specified lower limit exceeds the upper limit,
142 1a8f27c3 2004-05-14 devnull the axis
143 1a8f27c3 2004-05-14 devnull is reversed.
144 1a8f27c3 2004-05-14 devnull .SH SOURCE
145 c3674de4 2005-01-11 devnull .B \*9/src/cmd/graph
146 1a8f27c3 2004-05-14 devnull .SH "SEE ALSO"
147 1a8f27c3 2004-05-14 devnull .IR plot (1),
148 1a8f27c3 2004-05-14 devnull .IR grap (1)
149 1a8f27c3 2004-05-14 devnull .SH BUGS
150 1a8f27c3 2004-05-14 devnull Segments that run out of bounds are dropped, not windowed.
151 1a8f27c3 2004-05-14 devnull Logarithmic axes may not be reversed.
154 1a8f27c3 2004-05-14 devnull actually makes automatic limits, rather than automatic scaling,