1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
|
'\" te
.\" Copyright (C) 2003, Sun Microsystems, Inc. All Rights Reserved
.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
.\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
.TH plot 4B "18 Feb 2003" "SunOS 5.11" "SunOS/BSD Compatibility Package File Formats"
.SH NAME
plot \- graphics interface
.SH DESCRIPTION
.sp
.LP
Files of this format are interpreted for various devices by commands described
in \fBplot\fR(1B). A graphics file is a stream of plotting instructions. Each
instruction consists of an \fBASCII\fR letter usually followed by bytes of
binary information. The instructions are executed in order. A point is
designated by four bytes representing the \fIx\fR and \fIy\fR values; each
value is a signed integer. The last designated point in an \fBl\fR, \fBm\fR,
\fBn\fR, or \fBp\fR instruction becomes the ``current point'' for the next
instruction.
.sp
.ne 2
.mk
.na
\fB\fBm\fR \fR
.ad
.RS 6n
.rt
Move: the next four bytes give a new current point.
.RE
.sp
.ne 2
.mk
.na
\fB\fBn\fR \fR
.ad
.RS 6n
.rt
Cont: draw a line from the current point to the point given by the next four
bytes. See \fBplot\fR(1B).
.RE
.sp
.ne 2
.mk
.na
\fB\fBp\fR \fR
.ad
.RS 6n
.rt
Point: plot the point given by the next four bytes.
.RE
.sp
.ne 2
.mk
.na
\fB\fBl\fR \fR
.ad
.RS 6n
.rt
Line: draw a line from the point given by the next four bytes to the point
given by the following four bytes.
.RE
.sp
.ne 2
.mk
.na
\fB\fBt\fR \fR
.ad
.RS 6n
.rt
Label: place the following \fBASCII\fR string so that its first character falls
on the current point. The string is terminated by a \fBNEWLINE.\fR
.RE
.sp
.ne 2
.mk
.na
\fB\fBa\fR \fR
.ad
.RS 6n
.rt
Arc: the first four bytes give the center, the next four give the starting
point, and the last four give the end point of a circular arc. The least
significant coordinate of the end point is used only to determine the quadrant.
The arc is drawn counter-clockwise.
.RE
.sp
.ne 2
.mk
.na
\fB\fBc\fR \fR
.ad
.RS 6n
.rt
Circle: the first four bytes give the center of the circle, the next two the
radius.
.RE
.sp
.ne 2
.mk
.na
\fB\fBe\fR \fR
.ad
.RS 6n
.rt
Erase: start another frame of output.
.RE
.sp
.ne 2
.mk
.na
\fB\fBf\fR \fR
.ad
.RS 6n
.rt
Linemod: take the following string, up to a \fBNEWLINE,\fR as the style for
drawing further lines. The styles are ``dotted,'' ``solid,'' ``longdashed,''
``shortdashed,'' and ``dotdashed.'' Effective only in \fBplot\fR \fB4014\fR and
\fBplot ver\fR.
.RE
.sp
.ne 2
.mk
.na
\fB\fBs\fR \fR
.ad
.RS 6n
.rt
Space: the next four bytes give the lower left corner of the plotting area; the
following four give the upper right corner. The plot will be magnified or
reduced to fit the device as closely as possible.
.sp
Space settings that exactly fill the plotting area with unity scaling appear
below for devices supported by the filters of \fBplot\fR(1B). The upper limit
is just outside the plotting area.
.RE
.sp
.LP
In every case the plotting area is taken to be square; points outside may be
displayable on devices whose face is not square.
.sp
.ne 2
.mk
.na
\fB\fB4014\fR \fR
.ad
.RS 14n
.rt
\fBspace(0,\fR \fB0,\fR \fB3120,\fR \fB3120);\fR
.RE
.sp
.ne 2
.mk
.na
\fB\fBver\fR \fR
.ad
.RS 14n
.rt
\fBspace(0,\fR \fB0,\fR \fB2048,\fR \fB2048);\fR
.RE
.sp
.ne 2
.mk
.na
\fB\fB300\fR,\fB 300s\fR \fR
.ad
.RS 14n
.rt
\fBspace(0,\fR \fB0,\fR \fB4096,\fR \fB4096);\fR
.RE
.sp
.ne 2
.mk
.na
\fB\fB450\fR \fR
.ad
.RS 14n
.rt
\fBspace(0,\fR \fB0,\fR \fB4096,\fR \fB4096);\fR
.RE
.SH SEE ALSO
.sp
.LP
\fBgraph\fR(1), \fBplot\fR(1B)
|