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 3167fce5 2006-05-21 devnull .B -p
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 d32deab1 2020-08-16 rsc .MR plot (7) .
93 3167fce5 2006-05-21 devnull Successive curves will cycle through the colors in the given order.
94 3167fce5 2006-05-21 devnull .TP
95 1a8f27c3 2004-05-14 devnull .B -s
96 1a8f27c3 2004-05-14 devnull Save screen; no new page for this graph.
97 1a8f27c3 2004-05-14 devnull .TP
98 1a8f27c3 2004-05-14 devnull .B -x l
99 1a8f27c3 2004-05-14 devnull If
100 1a8f27c3 2004-05-14 devnull .B l
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)
105 1a8f27c3 2004-05-14 devnull .I x
106 1a8f27c3 2004-05-14 devnull limits.
107 1a8f27c3 2004-05-14 devnull Third argument, if present, is grid spacing on
108 1a8f27c3 2004-05-14 devnull .I x
109 1a8f27c3 2004-05-14 devnull axis.
110 1a8f27c3 2004-05-14 devnull Normally these quantities are determined automatically.
111 1a8f27c3 2004-05-14 devnull .TP
112 1a8f27c3 2004-05-14 devnull .B -y l
113 1a8f27c3 2004-05-14 devnull Similarly for
114 1a8f27c3 2004-05-14 devnull .IR y .
115 1a8f27c3 2004-05-14 devnull .TP
116 1a8f27c3 2004-05-14 devnull .B -e
117 1a8f27c3 2004-05-14 devnull Make automatically determined
118 1a8f27c3 2004-05-14 devnull .I x
119 1a8f27c3 2004-05-14 devnull and
120 1a8f27c3 2004-05-14 devnull .I y
121 1a8f27c3 2004-05-14 devnull scales equal.
122 1a8f27c3 2004-05-14 devnull .TP
123 1a8f27c3 2004-05-14 devnull .B -h
124 1a8f27c3 2004-05-14 devnull Next argument is fraction of space for height.
125 1a8f27c3 2004-05-14 devnull .TP
126 1a8f27c3 2004-05-14 devnull .B -w
127 1a8f27c3 2004-05-14 devnull Similarly for width.
128 1a8f27c3 2004-05-14 devnull .TP
129 1a8f27c3 2004-05-14 devnull .B -r
130 1a8f27c3 2004-05-14 devnull Next argument is fraction of space to move right before plotting.
131 1a8f27c3 2004-05-14 devnull .TP
132 1a8f27c3 2004-05-14 devnull .B -u
133 1a8f27c3 2004-05-14 devnull Similarly to move up before plotting.
134 1a8f27c3 2004-05-14 devnull .TP
135 1a8f27c3 2004-05-14 devnull .B -t
136 1a8f27c3 2004-05-14 devnull Transpose horizontal and vertical axes.
137 1a8f27c3 2004-05-14 devnull (Option
138 1a8f27c3 2004-05-14 devnull .B -a
139 1a8f27c3 2004-05-14 devnull now applies to the vertical axis.)
140 1a8f27c3 2004-05-14 devnull .PP
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 d32deab1 2020-08-16 rsc .MR 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.
152 1a8f27c3 2004-05-14 devnull Option
153 1a8f27c3 2004-05-14 devnull .B -e
154 1a8f27c3 2004-05-14 devnull actually makes automatic limits, rather than automatic scaling,
155 1a8f27c3 2004-05-14 devnull equal.