BSD 3 development
[unix-history] / usr / man / man5 / plot.5
CommitLineData
e6817382
BJ
1.TH PLOT 5
2.SH NAME
3plot \- graphics interface
4.SH DESCRIPTION
5Files of this format are produced by routines
6described in
7.IR plot (3),
8and are interpreted for various devices
9by commands described in
10.IR plot (1).
11A graphics file is a stream of plotting instructions.
12Each instruction consists of an ASCII letter
13usually followed by bytes of binary information.
14The instructions are executed in order.
15A point is designated by
16four bytes representing
17the
18x and y
19values;
20each value
21is a signed integer.
22The last designated point in an
23.B "l, m, n,"
24or
25.B p
26instruction becomes the `current point'
27for the next instruction.
28.PP
29Each of the following descriptions begins with the name
30of the corresponding routine in
31.IR plot (3).
32.TP 3
33.B m
34move: The next four bytes give a new current point.
35.TP 3
36.B n
37cont: Draw a line from the current point to
38the point given by the next four bytes.
39See
40.IR plot (1).
41.TP 3
42.B p
43point: Plot the point given by the next four bytes.
44.TP 3
45.B l
46line: Draw a line from the point given by the next
47four bytes to the point given by the following four bytes.
48.TP 3
49.B t
50label: Place the following ASCII string so that its
51first character falls on the current point.
52The string is terminated by a newline.
53.TP 3
54.B a
55arc:
56The first four bytes give the center, the next four give the
57starting point,
58and the last four give the end point of a circular arc.
59The least significant coordinate of the end point is
60used only to determine the quadrant.
61The arc is drawn counter-clockwise.
62.TP 3
63.B c
64circle:
65The first four bytes give the center of the circle,
66the next two the radius.
67.TP 3
68.B e
69erase: Start another frame of output.
70.TP 3
71.B f
72linemod: Take the following string, up to a newline,
73as the style for drawing further lines.
74The styles are
75`dotted,'
76`solid,' `longdashed,' `shortdashed,' and `dotdashed.'
77Effective only in
78.I plot 4014
79and
80.I plot ver.
81.TP 3
82.B s
83space: The next four bytes give
84the lower left corner of the plotting area;
85the following four give the upper right corner.
86The plot will be magnified or reduced to fit
87the device as closely as possible.
88.IP
89Space settings that exactly fill the plotting area
90with unity scaling appear below for
91devices supported by the filters of
92.IR plot (1).
93The upper limit is just outside the plotting area.
94In every case the plotting area is taken to be square;
95points outside may be displayable on
96devices whose face isn't square.
97.RS
98.TP 10n
994014
100space(0, 0, 3120, 3120);
101.br
102.ns
103.TP
104ver
105space(0, 0, 2048, 2048);
106.br
107.ns
108.TP
109300, 300s
110space(0, 0, 4096, 4096);
111.br
112.ns
113.TP
114450
115space(0, 0, 4096, 4096);
116.RE
117.SH "SEE ALSO"
118plot(1), plot(3), graph(1)