1plot(3PLOT)          Graphics Interface Library Functions          plot(3PLOT)
2
3
4

NAME

6       plot,  arc,  box,  circle,  closepl, closevt, cont, erase, label, line,
7       linemod, move, openpl, openvt, point, space - graphics interface
8

SYNOPSIS

10       cc [ flag ... ] file ... -lplot [ library... ]
11       #include <plot.h>
12
13       void arc(short x0, short y0, short x1, short y1, short x2,
14            short y2);
15
16
17       void box(short x0, short y0, short x1, short y1);
18
19
20       void circle(short x, short y, short r);
21
22
23       void closepl();
24
25
26       void closevt();
27
28
29       void cont(short x, short y);
30
31
32       void erase();
33
34
35       void label(char *s);
36
37
38       void line(short x0, short y0, short x1, short y1);
39
40
41       void linemod(char *s);
42
43
44       void move(short x, short y);
45
46
47       void openpl();
48
49
50       void openvt();
51
52
53       void point(short x, short y);
54
55
56       void space(short x0, short y0, short x1, short y1);
57
58

DESCRIPTION

60       These functions generate graphics output for a set of  output  devices.
61       The format of the output is dependent upon which  link editor option is
62       used when the program is compiled and  linked (see  Link Editor).
63
64
65       The term "current point" refers to the current setting for the x and  y
66       coordinates.
67
68
69       The  arc()  function specifies a circular arc. The coordinates (x0, y0)
70       specify the center of the arc. The coordinates  (x1,  y1)  specify  the
71       starting  point  of  the  arc. The coordinates (x2, y2) specify the end
72       point of the circular arc.
73
74
75       The box() function specifies a rectangle with  coordinates   (x0,  y0),
76       (x0,  y1),  (x1,  y0),  and (x1, y1). The current point is set to  (x1,
77       y1).
78
79
80       The circle() function specifies a circle with a center at  the  coordi‐
81       nates (x, y) and a radius of r.
82
83
84       The closevt() and closepl() functions flush the output.
85
86
87       The cont() function specifies a line beginning at the current point and
88       ending at the coordinates (x, y). The current point is set to  (x, y).
89
90
91       The erase() function starts another frame of output.
92
93
94       The label() function places the null terminated string s  so  that  the
95       first character falls on the current point.  The  string is then termi‐
96       nated by a  NEWLINE character.
97
98
99       The line() function draws a line starting at the coordinates  (x0,  y0)
100       and  ending  at  the  coordinates (x1, y1). The current point is set to
101       (x1, y1).
102
103
104       The linemod() function specifies the style for drawing future lines.  s
105       may  contain  one  of  the following: dotted, solid, longdashed, short‐
106       dashed, or dotdashed.
107
108
109       The move() function sets the current point to the coordinates (x, y).
110
111
112       The openpl() or openvt() function must be called  to  open  the  device
113       before any other plot functions are called.
114
115
116       The  point()  function plots the point given by the coordinates (x, y).
117       The current point is set to  (x, y).
118
119
120       The space() function specifies the size of the plotting area.  The plot
121       will be reduced or enlarged as necessary to fit the area specified. The
122       coordinates (x0, y0) specify the lower left hand corner of the plotting
123       area.  The  coordinates (x1, y1) specify the upper right hand corner of
124       the plotting area.
125
126   Link Editor
127       Various flavors of these functions exist for different output  devices.
128       They are obtained by using the following  ld(1) options:
129
130       -lplot    device-independent  graphics stream on standard output in the
131                 format described in  plot(4B)
132
133
134       -l300     GSI 300 terminal
135
136
137       -l300s    GSI 300S terminal
138
139
140       -l4014    Tektronix 4014 terminal
141
142
143       -l450     GSI 450 terminal
144
145
146       -lvt0
147
148

FILES

150       /usr/lib/libplot.so.1       shared object
151
152
153       /usr/lib/64/libplot.so.1    64-bit shared object
154
155
156       /usr/lib/lib300.so.1       shared object
157
158
159       /usr/lib/64/lib300.so.1    64-bit shared object
160
161
162       /usr/lib/lib300s.so.1       shared object
163
164
165       /usr/lib/64/lib300s.so.1    64-bit shared object
166
167
168       /usr/lib/lib4014.so.1       shared object
169
170
171       /usr/lib/64/lib4014.so.1    64-bit shared object
172
173
174       /usr/lib/lib450.so.1       shared object
175
176
177       /usr/lib/64/lib450.so.1    64-bit shared object
178
179
180       /usr/lib/libvt0.so.1       shared object
181
182
183       /usr/lib/64/libvt0.so.1    64-bit shared object
184
185

ATTRIBUTES

187       See attributes(5) for descriptions of the following attributes:
188
189
190
191
192       ┌─────────────────────────────┬─────────────────────────────┐
193       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
194       ├─────────────────────────────┼─────────────────────────────┤
195       │MT-Level                     │Unsafe                       │
196       └─────────────────────────────┴─────────────────────────────┘
197

SEE ALSO

199       graph(1), ld(1), libplot(3LIB), plot(4B), attributes(5)
200
201
202
203SunOS 5.11                        6 Oct 2004                       plot(3PLOT)
Impressum