1GRAPH(1G) GRAPH(1G)
2
3
4
6 graph - draw a graph
7
9 graph [ option ] ...
10
12 Graph with no options takes pairs of numbers from the standard input as
13 abscissas and ordinates of a graph. Successive points are connected by
14 straight lines. The graph is encoded on the standard output for dis‐
15 play by the plot(1G) filters.
16
17 If the coordinates of a point are followed by a nonnumeric string, that
18 string is printed as a label beginning on the point. Labels may be
19 surrounded with quotes "...", in which case they may be empty or con‐
20 tain blanks and numbers; labels never contain newlines.
21
22 The following options are recognized, each as a separate argument.
23
24 -a Supply abscissas automatically (they are missing from the
25 input); spacing is given by the next argument (default 1). A
26 second optional argument is the starting point for automatic
27 abscissas (default 0 or lower limit given by -x).
28
29 -b Break (disconnect) the graph after each label in the input.
30
31 -c Character string given by next argument is default label for
32 each point.
33
34 -g Next argument is grid style, 0 no grid, 1 frame with ticks, 2
35 full grid (default).
36
37 -l Next argument is label for graph.
38
39 -m Next argument is mode (style) of connecting lines: 0 discon‐
40 nected, 1 connected (default). Some devices give distinguish‐
41 able line styles for other small integers.
42
43 -s Save screen, don't erase before plotting.
44
45 -x [ l ]
46 If l is present, x axis is logarithmic. Next 1 (or 2) arguments
47 are lower (and upper) x limits. Third argument, if present, is
48 grid spacing on x axis. Normally these quantities are deter‐
49 mined automatically.
50
51 -y [ l ]
52 Similarly for y.
53
54 -h Next argument is fraction of space for height.
55
56 -w Similarly for width.
57
58 -r Next argument is fraction of space to move right before plot‐
59 ting.
60
61 -u Similarly to move up before plotting.
62
63 -t Transpose horizontal and vertical axes. (Option -x now applies
64 to the vertical axis.)
65
66 A legend indicating grid range is produced with a grid unless the -s
67 option is present.
68
69 If a specified lower limit exceeds the upper limit, the axis is
70 reversed.
71
73 spline(1G), plot(1G)
74
76 Graph stores all points internally and drops those for which there
77 isn't room.
78 Segments that run out of bounds are dropped, not windowed.
79 Logarithmic axes may not be reversed.
80
81
82
837th Edition April 29, 1985 GRAPH(1G)