1graph(1)                         User Commands                        graph(1)
2
3
4

NAME

6       graph - draw a graph
7

SYNOPSIS

9       graph [-a spacing [start]] [-b] [-c string] [-g gridstyle]
10            [-l label] [-m connectmode] [-s]
11            [-x [l] lower [ upper [spacing]]]
12            [-y [l] lower [upper [spacing]]] [-h fraction]
13            [-w fraction] [-r fraction] [-u fraction] [-t] ...
14
15

DESCRIPTION

17       graph with no options takes pairs of numbers from the standard input as
18       abscissaes and ordinates of a graph.  Successive points  are  connected
19       by  straight  lines.   The standard output from graph contains plotting
20       instructions suitable for input to plot(1B) or to the  command  lpr  -g
21       (see lpr(1B)).
22
23
24       If the coordinates of a point are followed by a nonnumeric string, that
25       string is printed as a label beginning on the point. Labels may be sur‐
26       rounded  with  quotes "...", in which case they may be empty or contain
27       blanks and numbers; labels never contain NEWLINE characters.
28
29
30       A legend indicating grid range is produced with a grid  unless  the  -s
31       option is present.
32

OPTIONS

34       Each  option is recognized as a separate argument. If a specified lower
35       limit exceeds the upper limit, the axis is reversed.
36
37       -a spacing[ start ]
38
39           Supply abscissaes automatically (they are missing from the  input);
40           spacing is the spacing (default 1). start is the starting point for
41           automatic abscissaes (default 0 or lower limit given by -x).
42
43
44       -b
45
46           Break (disconnect) the graph after each label in the input.
47
48
49       -c string
50
51           String is the default label for each point.
52
53
54       -g gridstyle
55
56           Gridstyle is the grid style: 0 no grid, 1 frame with ticks, 2  full
57           grid (default).
58
59
60       -l label
61
62           label is label for graph.
63
64
65       -m connectmode
66
67           Mode  (style)  of  connecting  lines:  0  disconnected, 1 connected
68           (default).  Some devices give distinguishable line styles for other
69           small integers.
70
71
72       -s
73
74           Save screen, do not erase before plotting.
75
76
77       -x [ l ] lower [ upper [ spacing ] ]
78
79           If  l  is present, x axis is logarithmic. lower and upper are lower
80           (and upper) x limits.  spacing, if present, is grid  spacing  on  x
81           axis.  Normally these quantities are determined automatically.
82
83
84       -y [ l ] lower [ upper [ spacing ] ]
85
86           If  l  is present, y axis is logarithmic. lower and upper are lower
87           (and upper) y limits.  spacing, if present, is grid  spacing  on  y
88           axis.  Normally these quantities are determined automatically.
89
90
91       -h fraction
92
93           fraction of space for height.
94
95
96       -w fraction
97
98           fraction of space for width.
99
100
101       -r fraction
102
103           fraction of space to move right before plotting.
104
105
106       -u fraction
107
108           fraction of space to move up before plotting.
109
110
111       -t
112
113           Transpose  horizontal  and  vertical axes. Option -x now applies to
114           the vertical axis.
115
116

ATTRIBUTES

118       See attributes(5) for descriptions of the following attributes:
119
120
121
122
123       ┌─────────────────────────────┬─────────────────────────────┐
124       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
125       ├─────────────────────────────┼─────────────────────────────┤
126       │Availability                 │SUNWesu                      │
127       └─────────────────────────────┴─────────────────────────────┘
128

SEE ALSO

130       lpr(1B), plot(1B), spline(1), plot(3PLOT), attributes(5)
131

BUGS

133       graph stores all points internally and drops those for which  there  is
134       no room.
135
136
137       Segments that run out of bounds are dropped, not windowed.
138
139
140       Logarithmic axes may not be reversed.
141
142
143
144SunOS 5.11                        14 Sep 1992                         graph(1)
Impressum