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