Debian Codegraph @

tests/share/ps.ps

raw
1 %!PS-Adobe-2.0
2 %%Creator: dot version 2.9.20060407.0440 (Fri Apr 7 07:41:14 GMT 2006)
3 %%For: (ellson) John Ellson,[north]
4 %%Title: G
5 %%Pages: (atend)
6 %%BoundingBox: (atend)
7 %%EndComments
8 save
9 %%BeginProlog
10 /DotDict 200 dict def
11 DotDict begin
12
13 /setupLatin1 {
14 mark
15 /EncodingVector 256 array def
16 EncodingVector 0
17
18 ISOLatin1Encoding 0 255 getinterval putinterval
19 EncodingVector 45 /hyphen put
20
21 % Set up ISO Latin 1 character encoding
22 /starnetISO {
23 dup dup findfont dup length dict begin
24 { 1 index /FID ne { def }{ pop pop } ifelse
25 } forall
26 /Encoding EncodingVector def
27 currentdict end definefont
28 } def
29 /Times-Roman starnetISO def
30 /Times-Italic starnetISO def
31 /Times-Bold starnetISO def
32 /Times-BoldItalic starnetISO def
33 /Helvetica starnetISO def
34 /Helvetica-Oblique starnetISO def
35 /Helvetica-Bold starnetISO def
36 /Helvetica-BoldOblique starnetISO def
37 /Courier starnetISO def
38 /Courier-Oblique starnetISO def
39 /Courier-Bold starnetISO def
40 /Courier-BoldOblique starnetISO def
41 cleartomark
42 } bind def
43
44 %%BeginResource: procset graphviz 0 0
45 /coord-font-family /Times-Roman def
46 /default-font-family /Times-Roman def
47 /coordfont coord-font-family findfont 8 scalefont def
48
49 /InvScaleFactor 1.0 def
50 /set_scale {
51 dup 1 exch div /InvScaleFactor exch def
52 dup scale
53 } bind def
54
55 % styles
56 /solid { [] 0 setdash } bind def
57 /dashed { [9 InvScaleFactor mul dup ] 0 setdash } bind def
58 /dotted { [1 InvScaleFactor mul 6 InvScaleFactor mul] 0 setdash } bind def
59 /invis {/fill {newpath} def /stroke {newpath} def /show {pop newpath} def} bind def
60 /bold { 2 setlinewidth } bind def
61 /filled { } bind def
62 /unfilled { } bind def
63 /rounded { } bind def
64 /diagonals { } bind def
65
66 % hooks for setting color
67 /nodecolor { sethsbcolor } bind def
68 /edgecolor { sethsbcolor } bind def
69 /graphcolor { sethsbcolor } bind def
70 /nopcolor {pop pop pop} bind def
71
72 /beginpage { % i j npages
73 /npages exch def
74 /j exch def
75 /i exch def
76 /str 10 string def
77 npages 1 gt {
78 gsave
79 coordfont setfont
80 0 0 moveto
81 (\() show i str cvs show (,) show j str cvs show (\)) show
82 grestore
83 } if
84 } bind def
85
86 /set_font {
87 findfont exch
88 scalefont setfont
89 } def
90
91 % draw aligned label in bounding box aligned to current point
92 /alignedtext { % width adj text
93 /text exch def
94 /adj exch def
95 /width exch def
96 gsave
97 width 0 gt {
98 text stringwidth pop adj mul 0 rmoveto
99 } if
100 [] 0 setdash
101 text show
102 grestore
103 } def
104
105 /boxprim { % xcorner ycorner xsize ysize
106 4 2 roll
107 moveto
108 2 copy
109 exch 0 rlineto
110 0 exch rlineto
111 pop neg 0 rlineto
112 closepath
113 } bind def
114
115 /ellipse_path {
116 /ry exch def
117 /rx exch def
118 /y exch def
119 /x exch def
120 matrix currentmatrix
121 newpath
122 x y translate
123 rx ry scale
124 0 0 1 0 360 arc
125 setmatrix
126 } bind def
127
128 /endpage { showpage } bind def
129 /showpage { } def
130
131 /layercolorseq
132 [ % layer color sequence - darkest to lightest
133 [0 0 0]
134 [.2 .8 .8]
135 [.4 .8 .8]
136 [.6 .8 .8]
137 [.8 .8 .8]
138 ]
139 def
140
141 /layerlen layercolorseq length def
142
143 /setlayer {/maxlayer exch def /curlayer exch def
144 layercolorseq curlayer 1 sub layerlen mod get
145 aload pop sethsbcolor
146 /nodecolor {nopcolor} def
147 /edgecolor {nopcolor} def
148 /graphcolor {nopcolor} def
149 } bind def
150
151 /onlayer { curlayer ne {invis} if } def
152
153 /onlayers {
154 /myupper exch def
155 /mylower exch def
156 curlayer mylower lt
157 curlayer myupper gt
158 or
159 {invis} if
160 } def
161
162 /curlayer 0 def
163
164 %%EndResource
165 %%EndProlog
166 %%BeginSetup
167 14 default-font-family set_font
168 1 setmiterlimit
169 % /arrowlength 10 def
170 % /arrowwidth 5 def
171
172 % make sure pdfmark is harmless for PS-interpreters other than Distiller
173 /pdfmark where {pop} {userdict /pdfmark /cleartomark load put} ifelse
174 % make '<<' and '>>' safe on PS Level 1 devices
175 /languagelevel where {pop languagelevel}{1} ifelse
176 2 lt {
177 userdict (<<) cvn ([) cvn load put
178 userdict (>>) cvn ([) cvn load put
179 } if
180
181 %%EndSetup
182 /xdef {exch def} bind def
183 /DFDbox {
184 10 dict begin
185 /fflag xdef
186 /sides xdef
187 dup
188 aload pop
189 % draw the sides
190 newpath
191 moveto
192 1 1 sides {
193 2 mod 0 ne
194 {moveto} % even sides
195 {lineto currentpoint stroke moveto} % odd sides
196 ifelse
197 } for
198 fflag % if shape is filled
199 {
200 aload pop
201 newpath
202 moveto
203 /y1 xdef
204 /x1 xdef
205 lineto stroke newpath
206 x1 y1 moveto lineto stroke
207 pop pop
208 }
209 {pop}
210 ifelse
211 end
212 } bind def
213 %%Page: 1 1
214 %%PageBoundingBox: 36 36 98 152
215 %%PageOrientation: Portrait
216 gsave
217 36 36 98 152 boxprim clip newpath
218 36 36 translate
219 0 0 1 beginpage
220 1.0000 set_scale
221 4 4 translate 0 rotate
222 0.000 0.000 1.000 graphcolor
223 0.000 0.000 1.000 graphcolor
224 newpath -6 -6 moveto
225 -6 114 lineto
226 60 114 lineto
227 60 -6 lineto
228 closepath
229 fill
230 0.000 0.000 1.000 graphcolor
231 newpath -6 -6 moveto
232 -6 114 lineto
233 60 114 lineto
234 60 -6 lineto
235 closepath
236 stroke
237 0.000 0.000 0.000 graphcolor
238 14.00 /Times-Roman set_font
239 % a
240 gsave 10 dict begin
241 filled
242 gsave 10 dict begin
243 0.000 0.000 0.827 nodecolor
244 [ 54 108 0 108 0 72 54 72 54 108 ] 4 true DFDbox
245 end grestore
246 [ 54 108 0 108 0 72 54 72 54 108 ] 4 false DFDbox
247 newpath 54 108 moveto
248 0 108 lineto
249 0 72 lineto
250 54 72 lineto
251 closepath
252 stroke
253 gsave 10 dict begin
254 27 87 moveto 7.0 -0.5 (a) alignedtext
255 end grestore
256 end grestore
257 % b
258 gsave 10 dict begin
259 27 18 27 18 ellipse_path
260 stroke
261 gsave 10 dict begin
262 27 15 moveto 9.0 -0.5 (b) alignedtext
263 end grestore
264 end grestore
265 % a->b
266 newpath 27 72 moveto
267 27 64 27 55 27 46 curveto
268 stroke
269 gsave 10 dict begin
270 solid
271 1 setlinewidth
272 0.000 0.000 0.000 edgecolor
273 newpath 31 46 moveto
274 27 36 lineto
275 24 46 lineto
276 closepath
277 fill
278 0.000 0.000 0.000 edgecolor
279 newpath 31 46 moveto
280 27 36 lineto
281 24 46 lineto
282 closepath
283 stroke
284 end grestore
285 endpage
286 showpage
287 grestore
288 %%PageTrailer
289 %%EndPage: 1
290 %%Trailer
291 %%Pages: 1
292 %%BoundingBox: 36 36 98 152
293 end
294 restore
295 %%EOF