Blame


1 1a8f27c3 2004-05-14 devnull .TH GRAPH 1
2 1a8f27c3 2004-05-14 devnull .CT 1 numbers graphics
3 1a8f27c3 2004-05-14 devnull .SH NAME
4 1a8f27c3 2004-05-14 devnull graph \- draw a graph
5 1a8f27c3 2004-05-14 devnull .SH SYNOPSIS
6 1a8f27c3 2004-05-14 devnull .B graph
7 1a8f27c3 2004-05-14 devnull [
8 1a8f27c3 2004-05-14 devnull .I option ...
9 1a8f27c3 2004-05-14 devnull ]
10 1a8f27c3 2004-05-14 devnull .SH DESCRIPTION
11 1a8f27c3 2004-05-14 devnull .I Graph
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)
22 1a8f27c3 2004-05-14 devnull filters.
23 1a8f27c3 2004-05-14 devnull .PP
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
28 1a8f27c3 2004-05-14 devnull .L
29 1a8f27c3 2004-05-14 devnull " "
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.
33 1a8f27c3 2004-05-14 devnull .PP
34 1a8f27c3 2004-05-14 devnull The following options are recognized,
35 1a8f27c3 2004-05-14 devnull each as a separate argument.
36 1a8f27c3 2004-05-14 devnull .TP
37 1a8f27c3 2004-05-14 devnull .B -a
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
46 1a8f27c3 2004-05-14 devnull .IR x ,
47 1a8f27c3 2004-05-14 devnull or the lower limit given by
48 1a8f27c3 2004-05-14 devnull .BR -x ).
49 1a8f27c3 2004-05-14 devnull .TP
50 1a8f27c3 2004-05-14 devnull .B -b
51 1a8f27c3 2004-05-14 devnull Break (disconnect) the graph after each label in the input.
52 1a8f27c3 2004-05-14 devnull .TP
53 1a8f27c3 2004-05-14 devnull .B -c
54 1a8f27c3 2004-05-14 devnull Character string given by next argument
55 1a8f27c3 2004-05-14 devnull is default label for each point.
56 1a8f27c3 2004-05-14 devnull .TP
57 1a8f27c3 2004-05-14 devnull .B -g
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).
60 1a8f27c3 2004-05-14 devnull .TP
61 1a8f27c3 2004-05-14 devnull .B -l
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
66 1a8f27c3 2004-05-14 devnull .B -s
67 1a8f27c3 2004-05-14 devnull option is present.
68 1a8f27c3 2004-05-14 devnull .TP
69 1a8f27c3 2004-05-14 devnull .B -m
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
77 1a8f27c3 2004-05-14 devnull .BR -o .
78 1a8f27c3 2004-05-14 devnull .TP
79 1a8f27c3 2004-05-14 devnull .B -o
80 1a8f27c3 2004-05-14 devnull (Overlay.)
81 1a8f27c3 2004-05-14 devnull The ordinates for
82 1a8f27c3 2004-05-14 devnull .I n
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
86 1a8f27c3 2004-05-14 devnull .IR n .
87 1a8f27c3 2004-05-14 devnull .TP
88 1a8f27c3 2004-05-14 devnull .B -s
89 1a8f27c3 2004-05-14 devnull Save screen; no new page for this graph.
90 1a8f27c3 2004-05-14 devnull .TP
91 1a8f27c3 2004-05-14 devnull .B -x l
92 1a8f27c3 2004-05-14 devnull If
93 1a8f27c3 2004-05-14 devnull .B l
94 1a8f27c3 2004-05-14 devnull is present,
95 1a8f27c3 2004-05-14 devnull .IR x -axis
96 1a8f27c3 2004-05-14 devnull is logarithmic.
97 1a8f27c3 2004-05-14 devnull Next 1 (or 2) arguments are lower (and upper)
98 1a8f27c3 2004-05-14 devnull .I x
99 1a8f27c3 2004-05-14 devnull limits.
100 1a8f27c3 2004-05-14 devnull Third argument, if present, is grid spacing on
101 1a8f27c3 2004-05-14 devnull .I x
102 1a8f27c3 2004-05-14 devnull axis.
103 1a8f27c3 2004-05-14 devnull Normally these quantities are determined automatically.
104 1a8f27c3 2004-05-14 devnull .TP
105 1a8f27c3 2004-05-14 devnull .B -y l
106 1a8f27c3 2004-05-14 devnull Similarly for
107 1a8f27c3 2004-05-14 devnull .IR y .
108 1a8f27c3 2004-05-14 devnull .TP
109 1a8f27c3 2004-05-14 devnull .B -e
110 1a8f27c3 2004-05-14 devnull Make automatically determined
111 1a8f27c3 2004-05-14 devnull .I x
112 1a8f27c3 2004-05-14 devnull and
113 1a8f27c3 2004-05-14 devnull .I y
114 1a8f27c3 2004-05-14 devnull scales equal.
115 1a8f27c3 2004-05-14 devnull .TP
116 1a8f27c3 2004-05-14 devnull .B -h
117 1a8f27c3 2004-05-14 devnull Next argument is fraction of space for height.
118 1a8f27c3 2004-05-14 devnull .TP
119 1a8f27c3 2004-05-14 devnull .B -w
120 1a8f27c3 2004-05-14 devnull Similarly for width.
121 1a8f27c3 2004-05-14 devnull .TP
122 1a8f27c3 2004-05-14 devnull .B -r
123 1a8f27c3 2004-05-14 devnull Next argument is fraction of space to move right before plotting.
124 1a8f27c3 2004-05-14 devnull .TP
125 1a8f27c3 2004-05-14 devnull .B -u
126 1a8f27c3 2004-05-14 devnull Similarly to move up before plotting.
127 1a8f27c3 2004-05-14 devnull .TP
128 1a8f27c3 2004-05-14 devnull .B -t
129 1a8f27c3 2004-05-14 devnull Transpose horizontal and vertical axes.
130 1a8f27c3 2004-05-14 devnull (Option
131 1a8f27c3 2004-05-14 devnull .B -a
132 1a8f27c3 2004-05-14 devnull now applies to the vertical axis.)
133 1a8f27c3 2004-05-14 devnull .PP
134 1a8f27c3 2004-05-14 devnull If a specified lower limit exceeds the upper limit,
135 1a8f27c3 2004-05-14 devnull the axis
136 1a8f27c3 2004-05-14 devnull is reversed.
137 1a8f27c3 2004-05-14 devnull .SH SOURCE
138 c3674de4 2005-01-11 devnull .B \*9/src/cmd/graph
139 1a8f27c3 2004-05-14 devnull .SH "SEE ALSO"
140 1a8f27c3 2004-05-14 devnull .IR plot (1),
141 1a8f27c3 2004-05-14 devnull .IR grap (1)
142 1a8f27c3 2004-05-14 devnull .SH BUGS
143 1a8f27c3 2004-05-14 devnull Segments that run out of bounds are dropped, not windowed.
144 1a8f27c3 2004-05-14 devnull Logarithmic axes may not be reversed.
145 1a8f27c3 2004-05-14 devnull Option
146 1a8f27c3 2004-05-14 devnull .B -e
147 1a8f27c3 2004-05-14 devnull actually makes automatic limits, rather than automatic scaling,
148 1a8f27c3 2004-05-14 devnull equal.