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