annotate CADDSuite/data/gnuplot/prologue.ps @ 3:bb26168c5715

Uploaded
author marcel
date Tue, 12 Jul 2011 10:53:07 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
bb26168c5715 Uploaded
marcel
parents:
diff changeset
1 %
bb26168c5715 Uploaded
marcel
parents:
diff changeset
2 % Gnuplot Prolog Version 4.4 (August 2010)
bb26168c5715 Uploaded
marcel
parents:
diff changeset
3 %
bb26168c5715 Uploaded
marcel
parents:
diff changeset
4 %/SuppressPDFMark true def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
5 %
bb26168c5715 Uploaded
marcel
parents:
diff changeset
6 /M {moveto} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
7 /L {lineto} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
8 /R {rmoveto} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
9 /V {rlineto} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
10 /N {newpath moveto} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
11 /Z {closepath} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
12 /C {setrgbcolor} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
13 /f {rlineto fill} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
14 /g {setgray} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
15 /Gshow {show} def % May be redefined later in the file to support UTF-8
bb26168c5715 Uploaded
marcel
parents:
diff changeset
16 /vpt2 vpt 2 mul def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
17 /hpt2 hpt 2 mul def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
18 /Lshow {currentpoint stroke M 0 vshift R
bb26168c5715 Uploaded
marcel
parents:
diff changeset
19 Blacktext {gsave 0 setgray show grestore} {show} ifelse} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
20 /Rshow {currentpoint stroke M dup stringwidth pop neg vshift R
bb26168c5715 Uploaded
marcel
parents:
diff changeset
21 Blacktext {gsave 0 setgray show grestore} {show} ifelse} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
22 /Cshow {currentpoint stroke M dup stringwidth pop -2 div vshift R
bb26168c5715 Uploaded
marcel
parents:
diff changeset
23 Blacktext {gsave 0 setgray show grestore} {show} ifelse} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
24 /UP {dup vpt_ mul /vpt exch def hpt_ mul /hpt exch def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
25 /hpt2 hpt 2 mul def /vpt2 vpt 2 mul def} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
26 /DL {Color {setrgbcolor Solid {pop []} if 0 setdash}
bb26168c5715 Uploaded
marcel
parents:
diff changeset
27 {pop pop pop 0 setgray Solid {pop []} if 0 setdash} ifelse} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
28 /BL {stroke userlinewidth 2 mul setlinewidth
bb26168c5715 Uploaded
marcel
parents:
diff changeset
29 Rounded {1 setlinejoin 1 setlinecap} if} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
30 /AL {stroke userlinewidth 2 div setlinewidth
bb26168c5715 Uploaded
marcel
parents:
diff changeset
31 Rounded {1 setlinejoin 1 setlinecap} if} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
32 /UL {dup gnulinewidth mul /userlinewidth exch def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
33 dup 1 lt {pop 1} if 10 mul /udl exch def} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
34 /PL {stroke userlinewidth setlinewidth
bb26168c5715 Uploaded
marcel
parents:
diff changeset
35 Rounded {1 setlinejoin 1 setlinecap} if} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
36 3.8 setmiterlimit
bb26168c5715 Uploaded
marcel
parents:
diff changeset
37 % Default Line colors
bb26168c5715 Uploaded
marcel
parents:
diff changeset
38 /LCw {1 1 1} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
39 /LCb {0 0 0} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
40 /LCa {0 0 0} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
41 /LC0 {1 0 0} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
42 /LC1 {0 1 0} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
43 /LC2 {0 0 1} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
44 /LC3 {1 0 1} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
45 /LC4 {0 1 1} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
46 /LC5 {1 1 0} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
47 /LC6 {0 0 0} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
48 /LC7 {1 0.3 0} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
49 /LC8 {0.5 0.5 0.5} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
50 % Default Line Types
bb26168c5715 Uploaded
marcel
parents:
diff changeset
51 /LTw {PL [] 1 setgray} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
52 /LTb {BL [] LCb DL} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
53 /LTa {AL [1 udl mul 2 udl mul] 0 setdash LCa setrgbcolor} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
54 /LT0 {PL [] LC0 DL} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
55 /LT1 {PL [4 dl1 2 dl2] LC1 DL} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
56 /LT2 {PL [2 dl1 3 dl2] LC2 DL} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
57 /LT3 {PL [1 dl1 1.5 dl2] LC3 DL} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
58 /LT4 {PL [6 dl1 2 dl2 1 dl1 2 dl2] LC4 DL} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
59 /LT5 {PL [3 dl1 3 dl2 1 dl1 3 dl2] LC5 DL} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
60 /LT6 {PL [2 dl1 2 dl2 2 dl1 6 dl2] LC6 DL} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
61 /LT7 {PL [1 dl1 2 dl2 6 dl1 2 dl2 1 dl1 2 dl2] LC7 DL} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
62 /LT8 {PL [2 dl1 2 dl2 2 dl1 2 dl2 2 dl1 2 dl2 2 dl1 4 dl2] LC8 DL} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
63 /Pnt {stroke [] 0 setdash gsave 1 setlinecap M 0 0 V stroke grestore} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
64 /Dia {stroke [] 0 setdash 2 copy vpt add M
bb26168c5715 Uploaded
marcel
parents:
diff changeset
65 hpt neg vpt neg V hpt vpt neg V
bb26168c5715 Uploaded
marcel
parents:
diff changeset
66 hpt vpt V hpt neg vpt V closepath stroke
bb26168c5715 Uploaded
marcel
parents:
diff changeset
67 Pnt} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
68 /Pls {stroke [] 0 setdash vpt sub M 0 vpt2 V
bb26168c5715 Uploaded
marcel
parents:
diff changeset
69 currentpoint stroke M
bb26168c5715 Uploaded
marcel
parents:
diff changeset
70 hpt neg vpt neg R hpt2 0 V stroke
bb26168c5715 Uploaded
marcel
parents:
diff changeset
71 } def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
72 /Box {stroke [] 0 setdash 2 copy exch hpt sub exch vpt add M
bb26168c5715 Uploaded
marcel
parents:
diff changeset
73 0 vpt2 neg V hpt2 0 V 0 vpt2 V
bb26168c5715 Uploaded
marcel
parents:
diff changeset
74 hpt2 neg 0 V closepath stroke
bb26168c5715 Uploaded
marcel
parents:
diff changeset
75 Pnt} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
76 /Crs {stroke [] 0 setdash exch hpt sub exch vpt add M
bb26168c5715 Uploaded
marcel
parents:
diff changeset
77 hpt2 vpt2 neg V currentpoint stroke M
bb26168c5715 Uploaded
marcel
parents:
diff changeset
78 hpt2 neg 0 R hpt2 vpt2 V stroke} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
79 /TriU {stroke [] 0 setdash 2 copy vpt 1.12 mul add M
bb26168c5715 Uploaded
marcel
parents:
diff changeset
80 hpt neg vpt -1.62 mul V
bb26168c5715 Uploaded
marcel
parents:
diff changeset
81 hpt 2 mul 0 V
bb26168c5715 Uploaded
marcel
parents:
diff changeset
82 hpt neg vpt 1.62 mul V closepath stroke
bb26168c5715 Uploaded
marcel
parents:
diff changeset
83 Pnt} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
84 /Star {2 copy Pls Crs} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
85 /BoxF {stroke [] 0 setdash exch hpt sub exch vpt add M
bb26168c5715 Uploaded
marcel
parents:
diff changeset
86 0 vpt2 neg V hpt2 0 V 0 vpt2 V
bb26168c5715 Uploaded
marcel
parents:
diff changeset
87 hpt2 neg 0 V closepath fill} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
88 /TriUF {stroke [] 0 setdash vpt 1.12 mul add M
bb26168c5715 Uploaded
marcel
parents:
diff changeset
89 hpt neg vpt -1.62 mul V
bb26168c5715 Uploaded
marcel
parents:
diff changeset
90 hpt 2 mul 0 V
bb26168c5715 Uploaded
marcel
parents:
diff changeset
91 hpt neg vpt 1.62 mul V closepath fill} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
92 /TriD {stroke [] 0 setdash 2 copy vpt 1.12 mul sub M
bb26168c5715 Uploaded
marcel
parents:
diff changeset
93 hpt neg vpt 1.62 mul V
bb26168c5715 Uploaded
marcel
parents:
diff changeset
94 hpt 2 mul 0 V
bb26168c5715 Uploaded
marcel
parents:
diff changeset
95 hpt neg vpt -1.62 mul V closepath stroke
bb26168c5715 Uploaded
marcel
parents:
diff changeset
96 Pnt} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
97 /TriDF {stroke [] 0 setdash vpt 1.12 mul sub M
bb26168c5715 Uploaded
marcel
parents:
diff changeset
98 hpt neg vpt 1.62 mul V
bb26168c5715 Uploaded
marcel
parents:
diff changeset
99 hpt 2 mul 0 V
bb26168c5715 Uploaded
marcel
parents:
diff changeset
100 hpt neg vpt -1.62 mul V closepath fill} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
101 /DiaF {stroke [] 0 setdash vpt add M
bb26168c5715 Uploaded
marcel
parents:
diff changeset
102 hpt neg vpt neg V hpt vpt neg V
bb26168c5715 Uploaded
marcel
parents:
diff changeset
103 hpt vpt V hpt neg vpt V closepath fill} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
104 /Pent {stroke [] 0 setdash 2 copy gsave
bb26168c5715 Uploaded
marcel
parents:
diff changeset
105 translate 0 hpt M 4 {72 rotate 0 hpt L} repeat
bb26168c5715 Uploaded
marcel
parents:
diff changeset
106 closepath stroke grestore Pnt} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
107 /PentF {stroke [] 0 setdash gsave
bb26168c5715 Uploaded
marcel
parents:
diff changeset
108 translate 0 hpt M 4 {72 rotate 0 hpt L} repeat
bb26168c5715 Uploaded
marcel
parents:
diff changeset
109 closepath fill grestore} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
110 /Circle {stroke [] 0 setdash 2 copy
bb26168c5715 Uploaded
marcel
parents:
diff changeset
111 hpt 0 360 arc stroke Pnt} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
112 /CircleF {stroke [] 0 setdash hpt 0 360 arc fill} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
113 /C0 {BL [] 0 setdash 2 copy moveto vpt 90 450 arc} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
114 /C1 {BL [] 0 setdash 2 copy moveto
bb26168c5715 Uploaded
marcel
parents:
diff changeset
115 2 copy vpt 0 90 arc closepath fill
bb26168c5715 Uploaded
marcel
parents:
diff changeset
116 vpt 0 360 arc closepath} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
117 /C2 {BL [] 0 setdash 2 copy moveto
bb26168c5715 Uploaded
marcel
parents:
diff changeset
118 2 copy vpt 90 180 arc closepath fill
bb26168c5715 Uploaded
marcel
parents:
diff changeset
119 vpt 0 360 arc closepath} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
120 /C3 {BL [] 0 setdash 2 copy moveto
bb26168c5715 Uploaded
marcel
parents:
diff changeset
121 2 copy vpt 0 180 arc closepath fill
bb26168c5715 Uploaded
marcel
parents:
diff changeset
122 vpt 0 360 arc closepath} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
123 /C4 {BL [] 0 setdash 2 copy moveto
bb26168c5715 Uploaded
marcel
parents:
diff changeset
124 2 copy vpt 180 270 arc closepath fill
bb26168c5715 Uploaded
marcel
parents:
diff changeset
125 vpt 0 360 arc closepath} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
126 /C5 {BL [] 0 setdash 2 copy moveto
bb26168c5715 Uploaded
marcel
parents:
diff changeset
127 2 copy vpt 0 90 arc
bb26168c5715 Uploaded
marcel
parents:
diff changeset
128 2 copy moveto
bb26168c5715 Uploaded
marcel
parents:
diff changeset
129 2 copy vpt 180 270 arc closepath fill
bb26168c5715 Uploaded
marcel
parents:
diff changeset
130 vpt 0 360 arc} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
131 /C6 {BL [] 0 setdash 2 copy moveto
bb26168c5715 Uploaded
marcel
parents:
diff changeset
132 2 copy vpt 90 270 arc closepath fill
bb26168c5715 Uploaded
marcel
parents:
diff changeset
133 vpt 0 360 arc closepath} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
134 /C7 {BL [] 0 setdash 2 copy moveto
bb26168c5715 Uploaded
marcel
parents:
diff changeset
135 2 copy vpt 0 270 arc closepath fill
bb26168c5715 Uploaded
marcel
parents:
diff changeset
136 vpt 0 360 arc closepath} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
137 /C8 {BL [] 0 setdash 2 copy moveto
bb26168c5715 Uploaded
marcel
parents:
diff changeset
138 2 copy vpt 270 360 arc closepath fill
bb26168c5715 Uploaded
marcel
parents:
diff changeset
139 vpt 0 360 arc closepath} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
140 /C9 {BL [] 0 setdash 2 copy moveto
bb26168c5715 Uploaded
marcel
parents:
diff changeset
141 2 copy vpt 270 450 arc closepath fill
bb26168c5715 Uploaded
marcel
parents:
diff changeset
142 vpt 0 360 arc closepath} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
143 /C10 {BL [] 0 setdash 2 copy 2 copy moveto vpt 270 360 arc closepath fill
bb26168c5715 Uploaded
marcel
parents:
diff changeset
144 2 copy moveto
bb26168c5715 Uploaded
marcel
parents:
diff changeset
145 2 copy vpt 90 180 arc closepath fill
bb26168c5715 Uploaded
marcel
parents:
diff changeset
146 vpt 0 360 arc closepath} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
147 /C11 {BL [] 0 setdash 2 copy moveto
bb26168c5715 Uploaded
marcel
parents:
diff changeset
148 2 copy vpt 0 180 arc closepath fill
bb26168c5715 Uploaded
marcel
parents:
diff changeset
149 2 copy moveto
bb26168c5715 Uploaded
marcel
parents:
diff changeset
150 2 copy vpt 270 360 arc closepath fill
bb26168c5715 Uploaded
marcel
parents:
diff changeset
151 vpt 0 360 arc closepath} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
152 /C12 {BL [] 0 setdash 2 copy moveto
bb26168c5715 Uploaded
marcel
parents:
diff changeset
153 2 copy vpt 180 360 arc closepath fill
bb26168c5715 Uploaded
marcel
parents:
diff changeset
154 vpt 0 360 arc closepath} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
155 /C13 {BL [] 0 setdash 2 copy moveto
bb26168c5715 Uploaded
marcel
parents:
diff changeset
156 2 copy vpt 0 90 arc closepath fill
bb26168c5715 Uploaded
marcel
parents:
diff changeset
157 2 copy moveto
bb26168c5715 Uploaded
marcel
parents:
diff changeset
158 2 copy vpt 180 360 arc closepath fill
bb26168c5715 Uploaded
marcel
parents:
diff changeset
159 vpt 0 360 arc closepath} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
160 /C14 {BL [] 0 setdash 2 copy moveto
bb26168c5715 Uploaded
marcel
parents:
diff changeset
161 2 copy vpt 90 360 arc closepath fill
bb26168c5715 Uploaded
marcel
parents:
diff changeset
162 vpt 0 360 arc} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
163 /C15 {BL [] 0 setdash 2 copy vpt 0 360 arc closepath fill
bb26168c5715 Uploaded
marcel
parents:
diff changeset
164 vpt 0 360 arc closepath} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
165 /Rec {newpath 4 2 roll moveto 1 index 0 rlineto 0 exch rlineto
bb26168c5715 Uploaded
marcel
parents:
diff changeset
166 neg 0 rlineto closepath} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
167 /Square {dup Rec} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
168 /Bsquare {vpt sub exch vpt sub exch vpt2 Square} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
169 /S0 {BL [] 0 setdash 2 copy moveto 0 vpt rlineto BL Bsquare} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
170 /S1 {BL [] 0 setdash 2 copy vpt Square fill Bsquare} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
171 /S2 {BL [] 0 setdash 2 copy exch vpt sub exch vpt Square fill Bsquare} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
172 /S3 {BL [] 0 setdash 2 copy exch vpt sub exch vpt2 vpt Rec fill Bsquare} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
173 /S4 {BL [] 0 setdash 2 copy exch vpt sub exch vpt sub vpt Square fill Bsquare} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
174 /S5 {BL [] 0 setdash 2 copy 2 copy vpt Square fill
bb26168c5715 Uploaded
marcel
parents:
diff changeset
175 exch vpt sub exch vpt sub vpt Square fill Bsquare} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
176 /S6 {BL [] 0 setdash 2 copy exch vpt sub exch vpt sub vpt vpt2 Rec fill Bsquare} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
177 /S7 {BL [] 0 setdash 2 copy exch vpt sub exch vpt sub vpt vpt2 Rec fill
bb26168c5715 Uploaded
marcel
parents:
diff changeset
178 2 copy vpt Square fill Bsquare} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
179 /S8 {BL [] 0 setdash 2 copy vpt sub vpt Square fill Bsquare} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
180 /S9 {BL [] 0 setdash 2 copy vpt sub vpt vpt2 Rec fill Bsquare} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
181 /S10 {BL [] 0 setdash 2 copy vpt sub vpt Square fill 2 copy exch vpt sub exch vpt Square fill
bb26168c5715 Uploaded
marcel
parents:
diff changeset
182 Bsquare} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
183 /S11 {BL [] 0 setdash 2 copy vpt sub vpt Square fill 2 copy exch vpt sub exch vpt2 vpt Rec fill
bb26168c5715 Uploaded
marcel
parents:
diff changeset
184 Bsquare} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
185 /S12 {BL [] 0 setdash 2 copy exch vpt sub exch vpt sub vpt2 vpt Rec fill Bsquare} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
186 /S13 {BL [] 0 setdash 2 copy exch vpt sub exch vpt sub vpt2 vpt Rec fill
bb26168c5715 Uploaded
marcel
parents:
diff changeset
187 2 copy vpt Square fill Bsquare} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
188 /S14 {BL [] 0 setdash 2 copy exch vpt sub exch vpt sub vpt2 vpt Rec fill
bb26168c5715 Uploaded
marcel
parents:
diff changeset
189 2 copy exch vpt sub exch vpt Square fill Bsquare} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
190 /S15 {BL [] 0 setdash 2 copy Bsquare fill Bsquare} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
191 /D0 {gsave translate 45 rotate 0 0 S0 stroke grestore} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
192 /D1 {gsave translate 45 rotate 0 0 S1 stroke grestore} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
193 /D2 {gsave translate 45 rotate 0 0 S2 stroke grestore} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
194 /D3 {gsave translate 45 rotate 0 0 S3 stroke grestore} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
195 /D4 {gsave translate 45 rotate 0 0 S4 stroke grestore} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
196 /D5 {gsave translate 45 rotate 0 0 S5 stroke grestore} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
197 /D6 {gsave translate 45 rotate 0 0 S6 stroke grestore} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
198 /D7 {gsave translate 45 rotate 0 0 S7 stroke grestore} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
199 /D8 {gsave translate 45 rotate 0 0 S8 stroke grestore} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
200 /D9 {gsave translate 45 rotate 0 0 S9 stroke grestore} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
201 /D10 {gsave translate 45 rotate 0 0 S10 stroke grestore} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
202 /D11 {gsave translate 45 rotate 0 0 S11 stroke grestore} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
203 /D12 {gsave translate 45 rotate 0 0 S12 stroke grestore} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
204 /D13 {gsave translate 45 rotate 0 0 S13 stroke grestore} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
205 /D14 {gsave translate 45 rotate 0 0 S14 stroke grestore} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
206 /D15 {gsave translate 45 rotate 0 0 S15 stroke grestore} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
207 /DiaE {stroke [] 0 setdash vpt add M
bb26168c5715 Uploaded
marcel
parents:
diff changeset
208 hpt neg vpt neg V hpt vpt neg V
bb26168c5715 Uploaded
marcel
parents:
diff changeset
209 hpt vpt V hpt neg vpt V closepath stroke} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
210 /BoxE {stroke [] 0 setdash exch hpt sub exch vpt add M
bb26168c5715 Uploaded
marcel
parents:
diff changeset
211 0 vpt2 neg V hpt2 0 V 0 vpt2 V
bb26168c5715 Uploaded
marcel
parents:
diff changeset
212 hpt2 neg 0 V closepath stroke} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
213 /TriUE {stroke [] 0 setdash vpt 1.12 mul add M
bb26168c5715 Uploaded
marcel
parents:
diff changeset
214 hpt neg vpt -1.62 mul V
bb26168c5715 Uploaded
marcel
parents:
diff changeset
215 hpt 2 mul 0 V
bb26168c5715 Uploaded
marcel
parents:
diff changeset
216 hpt neg vpt 1.62 mul V closepath stroke} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
217 /TriDE {stroke [] 0 setdash vpt 1.12 mul sub M
bb26168c5715 Uploaded
marcel
parents:
diff changeset
218 hpt neg vpt 1.62 mul V
bb26168c5715 Uploaded
marcel
parents:
diff changeset
219 hpt 2 mul 0 V
bb26168c5715 Uploaded
marcel
parents:
diff changeset
220 hpt neg vpt -1.62 mul V closepath stroke} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
221 /PentE {stroke [] 0 setdash gsave
bb26168c5715 Uploaded
marcel
parents:
diff changeset
222 translate 0 hpt M 4 {72 rotate 0 hpt L} repeat
bb26168c5715 Uploaded
marcel
parents:
diff changeset
223 closepath stroke grestore} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
224 /CircE {stroke [] 0 setdash
bb26168c5715 Uploaded
marcel
parents:
diff changeset
225 hpt 0 360 arc stroke} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
226 /Opaque {gsave closepath 1 setgray fill grestore 0 setgray closepath} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
227 /DiaW {stroke [] 0 setdash vpt add M
bb26168c5715 Uploaded
marcel
parents:
diff changeset
228 hpt neg vpt neg V hpt vpt neg V
bb26168c5715 Uploaded
marcel
parents:
diff changeset
229 hpt vpt V hpt neg vpt V Opaque stroke} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
230 /BoxW {stroke [] 0 setdash exch hpt sub exch vpt add M
bb26168c5715 Uploaded
marcel
parents:
diff changeset
231 0 vpt2 neg V hpt2 0 V 0 vpt2 V
bb26168c5715 Uploaded
marcel
parents:
diff changeset
232 hpt2 neg 0 V Opaque stroke} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
233 /TriUW {stroke [] 0 setdash vpt 1.12 mul add M
bb26168c5715 Uploaded
marcel
parents:
diff changeset
234 hpt neg vpt -1.62 mul V
bb26168c5715 Uploaded
marcel
parents:
diff changeset
235 hpt 2 mul 0 V
bb26168c5715 Uploaded
marcel
parents:
diff changeset
236 hpt neg vpt 1.62 mul V Opaque stroke} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
237 /TriDW {stroke [] 0 setdash vpt 1.12 mul sub M
bb26168c5715 Uploaded
marcel
parents:
diff changeset
238 hpt neg vpt 1.62 mul V
bb26168c5715 Uploaded
marcel
parents:
diff changeset
239 hpt 2 mul 0 V
bb26168c5715 Uploaded
marcel
parents:
diff changeset
240 hpt neg vpt -1.62 mul V Opaque stroke} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
241 /PentW {stroke [] 0 setdash gsave
bb26168c5715 Uploaded
marcel
parents:
diff changeset
242 translate 0 hpt M 4 {72 rotate 0 hpt L} repeat
bb26168c5715 Uploaded
marcel
parents:
diff changeset
243 Opaque stroke grestore} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
244 /CircW {stroke [] 0 setdash
bb26168c5715 Uploaded
marcel
parents:
diff changeset
245 hpt 0 360 arc Opaque stroke} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
246 /BoxFill {gsave Rec 1 setgray fill grestore} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
247 /Density {
bb26168c5715 Uploaded
marcel
parents:
diff changeset
248 /Fillden exch def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
249 currentrgbcolor
bb26168c5715 Uploaded
marcel
parents:
diff changeset
250 /ColB exch def /ColG exch def /ColR exch def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
251 /ColR ColR Fillden mul Fillden sub 1 add def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
252 /ColG ColG Fillden mul Fillden sub 1 add def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
253 /ColB ColB Fillden mul Fillden sub 1 add def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
254 ColR ColG ColB setrgbcolor} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
255 /BoxColFill {gsave Rec PolyFill} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
256 /PolyFill {gsave Density fill grestore grestore} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
257 /h {rlineto rlineto rlineto gsave closepath fill grestore} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
258 %
bb26168c5715 Uploaded
marcel
parents:
diff changeset
259 % PostScript Level 1 Pattern Fill routine for rectangles
bb26168c5715 Uploaded
marcel
parents:
diff changeset
260 % Usage: x y w h s a XX PatternFill
bb26168c5715 Uploaded
marcel
parents:
diff changeset
261 % x,y = lower left corner of box to be filled
bb26168c5715 Uploaded
marcel
parents:
diff changeset
262 % w,h = width and height of box
bb26168c5715 Uploaded
marcel
parents:
diff changeset
263 % a = angle in degrees between lines and x-axis
bb26168c5715 Uploaded
marcel
parents:
diff changeset
264 % XX = 0/1 for no/yes cross-hatch
bb26168c5715 Uploaded
marcel
parents:
diff changeset
265 %
bb26168c5715 Uploaded
marcel
parents:
diff changeset
266 /PatternFill {gsave /PFa [ 9 2 roll ] def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
267 PFa 0 get PFa 2 get 2 div add PFa 1 get PFa 3 get 2 div add translate
bb26168c5715 Uploaded
marcel
parents:
diff changeset
268 PFa 2 get -2 div PFa 3 get -2 div PFa 2 get PFa 3 get Rec
bb26168c5715 Uploaded
marcel
parents:
diff changeset
269 gsave 1 setgray fill grestore clip
bb26168c5715 Uploaded
marcel
parents:
diff changeset
270 currentlinewidth 0.5 mul setlinewidth
bb26168c5715 Uploaded
marcel
parents:
diff changeset
271 /PFs PFa 2 get dup mul PFa 3 get dup mul add sqrt def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
272 0 0 M PFa 5 get rotate PFs -2 div dup translate
bb26168c5715 Uploaded
marcel
parents:
diff changeset
273 0 1 PFs PFa 4 get div 1 add floor cvi
bb26168c5715 Uploaded
marcel
parents:
diff changeset
274 {PFa 4 get mul 0 M 0 PFs V} for
bb26168c5715 Uploaded
marcel
parents:
diff changeset
275 0 PFa 6 get ne {
bb26168c5715 Uploaded
marcel
parents:
diff changeset
276 0 1 PFs PFa 4 get div 1 add floor cvi
bb26168c5715 Uploaded
marcel
parents:
diff changeset
277 {PFa 4 get mul 0 2 1 roll M PFs 0 V} for
bb26168c5715 Uploaded
marcel
parents:
diff changeset
278 } if
bb26168c5715 Uploaded
marcel
parents:
diff changeset
279 stroke grestore} def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
280 %
bb26168c5715 Uploaded
marcel
parents:
diff changeset
281 /languagelevel where
bb26168c5715 Uploaded
marcel
parents:
diff changeset
282 {pop languagelevel} {1} ifelse
bb26168c5715 Uploaded
marcel
parents:
diff changeset
283 2 lt
bb26168c5715 Uploaded
marcel
parents:
diff changeset
284 {/InterpretLevel1 true def}
bb26168c5715 Uploaded
marcel
parents:
diff changeset
285 {/InterpretLevel1 Level1 def}
bb26168c5715 Uploaded
marcel
parents:
diff changeset
286 ifelse
bb26168c5715 Uploaded
marcel
parents:
diff changeset
287 %
bb26168c5715 Uploaded
marcel
parents:
diff changeset
288 % PostScript level 2 pattern fill definitions
bb26168c5715 Uploaded
marcel
parents:
diff changeset
289 %
bb26168c5715 Uploaded
marcel
parents:
diff changeset
290 /Level2PatternFill {
bb26168c5715 Uploaded
marcel
parents:
diff changeset
291 /Tile8x8 {/PaintType 2 /PatternType 1 /TilingType 1 /BBox [0 0 8 8] /XStep 8 /YStep 8}
bb26168c5715 Uploaded
marcel
parents:
diff changeset
292 bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
293 /KeepColor {currentrgbcolor [/Pattern /DeviceRGB] setcolorspace} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
294 << Tile8x8
bb26168c5715 Uploaded
marcel
parents:
diff changeset
295 /PaintProc {0.5 setlinewidth pop 0 0 M 8 8 L 0 8 M 8 0 L stroke}
bb26168c5715 Uploaded
marcel
parents:
diff changeset
296 >> matrix makepattern
bb26168c5715 Uploaded
marcel
parents:
diff changeset
297 /Pat1 exch def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
298 << Tile8x8
bb26168c5715 Uploaded
marcel
parents:
diff changeset
299 /PaintProc {0.5 setlinewidth pop 0 0 M 8 8 L 0 8 M 8 0 L stroke
bb26168c5715 Uploaded
marcel
parents:
diff changeset
300 0 4 M 4 8 L 8 4 L 4 0 L 0 4 L stroke}
bb26168c5715 Uploaded
marcel
parents:
diff changeset
301 >> matrix makepattern
bb26168c5715 Uploaded
marcel
parents:
diff changeset
302 /Pat2 exch def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
303 << Tile8x8
bb26168c5715 Uploaded
marcel
parents:
diff changeset
304 /PaintProc {0.5 setlinewidth pop 0 0 M 0 8 L
bb26168c5715 Uploaded
marcel
parents:
diff changeset
305 8 8 L 8 0 L 0 0 L fill}
bb26168c5715 Uploaded
marcel
parents:
diff changeset
306 >> matrix makepattern
bb26168c5715 Uploaded
marcel
parents:
diff changeset
307 /Pat3 exch def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
308 << Tile8x8
bb26168c5715 Uploaded
marcel
parents:
diff changeset
309 /PaintProc {0.5 setlinewidth pop -4 8 M 8 -4 L
bb26168c5715 Uploaded
marcel
parents:
diff changeset
310 0 12 M 12 0 L stroke}
bb26168c5715 Uploaded
marcel
parents:
diff changeset
311 >> matrix makepattern
bb26168c5715 Uploaded
marcel
parents:
diff changeset
312 /Pat4 exch def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
313 << Tile8x8
bb26168c5715 Uploaded
marcel
parents:
diff changeset
314 /PaintProc {0.5 setlinewidth pop -4 0 M 8 12 L
bb26168c5715 Uploaded
marcel
parents:
diff changeset
315 0 -4 M 12 8 L stroke}
bb26168c5715 Uploaded
marcel
parents:
diff changeset
316 >> matrix makepattern
bb26168c5715 Uploaded
marcel
parents:
diff changeset
317 /Pat5 exch def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
318 << Tile8x8
bb26168c5715 Uploaded
marcel
parents:
diff changeset
319 /PaintProc {0.5 setlinewidth pop -2 8 M 4 -4 L
bb26168c5715 Uploaded
marcel
parents:
diff changeset
320 0 12 M 8 -4 L 4 12 M 10 0 L stroke}
bb26168c5715 Uploaded
marcel
parents:
diff changeset
321 >> matrix makepattern
bb26168c5715 Uploaded
marcel
parents:
diff changeset
322 /Pat6 exch def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
323 << Tile8x8
bb26168c5715 Uploaded
marcel
parents:
diff changeset
324 /PaintProc {0.5 setlinewidth pop -2 0 M 4 12 L
bb26168c5715 Uploaded
marcel
parents:
diff changeset
325 0 -4 M 8 12 L 4 -4 M 10 8 L stroke}
bb26168c5715 Uploaded
marcel
parents:
diff changeset
326 >> matrix makepattern
bb26168c5715 Uploaded
marcel
parents:
diff changeset
327 /Pat7 exch def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
328 << Tile8x8
bb26168c5715 Uploaded
marcel
parents:
diff changeset
329 /PaintProc {0.5 setlinewidth pop 8 -2 M -4 4 L
bb26168c5715 Uploaded
marcel
parents:
diff changeset
330 12 0 M -4 8 L 12 4 M 0 10 L stroke}
bb26168c5715 Uploaded
marcel
parents:
diff changeset
331 >> matrix makepattern
bb26168c5715 Uploaded
marcel
parents:
diff changeset
332 /Pat8 exch def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
333 << Tile8x8
bb26168c5715 Uploaded
marcel
parents:
diff changeset
334 /PaintProc {0.5 setlinewidth pop 0 -2 M 12 4 L
bb26168c5715 Uploaded
marcel
parents:
diff changeset
335 -4 0 M 12 8 L -4 4 M 8 10 L stroke}
bb26168c5715 Uploaded
marcel
parents:
diff changeset
336 >> matrix makepattern
bb26168c5715 Uploaded
marcel
parents:
diff changeset
337 /Pat9 exch def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
338 /Pattern1 {PatternBgnd KeepColor Pat1 setpattern} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
339 /Pattern2 {PatternBgnd KeepColor Pat2 setpattern} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
340 /Pattern3 {PatternBgnd KeepColor Pat3 setpattern} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
341 /Pattern4 {PatternBgnd KeepColor Landscape {Pat5} {Pat4} ifelse setpattern} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
342 /Pattern5 {PatternBgnd KeepColor Landscape {Pat4} {Pat5} ifelse setpattern} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
343 /Pattern6 {PatternBgnd KeepColor Landscape {Pat9} {Pat6} ifelse setpattern} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
344 /Pattern7 {PatternBgnd KeepColor Landscape {Pat8} {Pat7} ifelse setpattern} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
345 } def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
346 %
bb26168c5715 Uploaded
marcel
parents:
diff changeset
347 %
bb26168c5715 Uploaded
marcel
parents:
diff changeset
348 %End of PostScript Level 2 code
bb26168c5715 Uploaded
marcel
parents:
diff changeset
349 %
bb26168c5715 Uploaded
marcel
parents:
diff changeset
350 /PatternBgnd {
bb26168c5715 Uploaded
marcel
parents:
diff changeset
351 TransparentPatterns {} {gsave 1 setgray fill grestore} ifelse
bb26168c5715 Uploaded
marcel
parents:
diff changeset
352 } def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
353 %
bb26168c5715 Uploaded
marcel
parents:
diff changeset
354 % Substitute for Level 2 pattern fill codes with
bb26168c5715 Uploaded
marcel
parents:
diff changeset
355 % grayscale if Level 2 support is not selected.
bb26168c5715 Uploaded
marcel
parents:
diff changeset
356 %
bb26168c5715 Uploaded
marcel
parents:
diff changeset
357 /Level1PatternFill {
bb26168c5715 Uploaded
marcel
parents:
diff changeset
358 /Pattern1 {0.250 Density} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
359 /Pattern2 {0.500 Density} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
360 /Pattern3 {0.750 Density} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
361 /Pattern4 {0.125 Density} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
362 /Pattern5 {0.375 Density} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
363 /Pattern6 {0.625 Density} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
364 /Pattern7 {0.875 Density} bind def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
365 } def
bb26168c5715 Uploaded
marcel
parents:
diff changeset
366 %
bb26168c5715 Uploaded
marcel
parents:
diff changeset
367 % Now test for support of Level 2 code
bb26168c5715 Uploaded
marcel
parents:
diff changeset
368 %
bb26168c5715 Uploaded
marcel
parents:
diff changeset
369 Level1 {Level1PatternFill} {Level2PatternFill} ifelse
bb26168c5715 Uploaded
marcel
parents:
diff changeset
370 %
bb26168c5715 Uploaded
marcel
parents:
diff changeset
371 /Symbol-Oblique /Symbol findfont [1 0 .167 1 0 0] makefont
bb26168c5715 Uploaded
marcel
parents:
diff changeset
372 dup length dict begin {1 index /FID eq {pop pop} {def} ifelse} forall
bb26168c5715 Uploaded
marcel
parents:
diff changeset
373 currentdict end definefont pop