Debian Codegraph @

texmf-dist/doc/latex/visualpstricks/Source/pst1.tex

raw
1 %\subsection{Commandes sans astérisque}
2 \SbSSCT{Commandes sans astérisque}{Commands without asterik}
3
4 \psset{llx=-.5cm,lly=-.5cm,urx=.2cm,ury=.2cm,xAxisLabel={}, yAxisLabel={}}
5
6 \psset{linecolor=blue,linewidth=2pt}
7 \begin{tabular}{|c|c|c|} \hline
8 \begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
9 \psline(0, 0)(1, 1)(2, 1)(3, 3)
10 \end{psgraph}
11 &
12 \begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
13 \psdots(1, 0.5)(2, 2.5)(3, 1.5)
14 \end{psgraph}
15 &
16 \begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
17 \pspolygon(1, 0.5)(2, 3)(3, 1.5)(2.5,1)
18 \end{psgraph}\\ \hline
19 \BSS{psline} & \BSS{psdots} & \BSS{pspolygon} \\
20 (0, 0)(1,1)(2,1)(3,3) & (1,0.5)(2,2.5)(3,1.5) & (1,0.5)(2,3)(3,1.5)(2.5,1) \\
21 \hline
22
23 \end{tabular}
24
25 %2222222222222222222222222222222222222222222222222222222222222
26
27 \bigskip
28 \begin{tabular}{|c|c|c|} \hline
29 \begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
30 \psframe(1, 1)(3, 3)
31 \end{psgraph}
32 &
33 \begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
34 \psdiamond(2,2)(1,1)
35 \end{psgraph}
36 &
37 \begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
38 \pstriangle(2,1)(2,2)
39 \end{psgraph} \\ \hline
40 \BSS{psframe} & \BSS{psdiamond} & \BSS{pstriangle} \\
41 (1, 1)(3, 3) & (2,2)(1,1) & (2,1)(2,2) \\
42 \hline
43 \end{tabular}
44
45 %3333333333333333333333333333333333333333333333333333333333333333333333333
46
47
48
49 \bigskip
50 \begin{tabular}{|c|c|c|} \hline
51 \begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
52 \pscircle(2,2){1}
53 \end{psgraph}
54 &
55 \begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
56 \psarc(2,2){1}{-30}{60}
57 \end{psgraph}
58 &
59 \begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
60 \psarcn(2,2){1}{-30}{60}
61 \end{psgraph}
62 \\ \hline
63 \BSS{pscircle} & \BSS{psarc} & \BSS{psarcn} \\
64 (2,2)\AC{1} & (2,2)\AC{1}\AC{-30}\AC{60} & (2,2)\AC{1}\AC{-30}\AC{60} \\
65 \hline
66 \end{tabular}
67
68 %44444444444444444444444444444444444444444444444444444444444444
69
70
71 \bigskip
72 \begin{tabular}{|c|c|c|} \hline
73 \begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
74 \psellipse(2, 2)(1.5,1)
75 \end{psgraph}
76 &
77 \begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
78 \psellipticarc(2, 2)(1.5,1){150}{30}
79 \end{psgraph}
80 &
81 \begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
82 \psellipticarcn(2, 2)(1.5,1){150}{30}
83 \end{psgraph}
84 \\ \hline
85 \BSS{psellipse} & \BSS{psellipticarc} & \BSS{psellipticarcn} \\
86 (2, 2)(1.5,1) & (2, 2)(1.5,1)\AC{150}\AC{30} & (2, 2)(1.5,1)\AC{150}\AC{30} \\
87 \hline
88 \end{tabular}
89
90 %55555555555555555555555555555555555555555555555555555555555555555
91
92
93 \bigskip
94 \begin{tabular}{|c|c|c|} \hline
95 \begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
96 \pscurve[showpoints=true](1,1)(2,3)(3,2)(2,1)(3,1)
97 \end{psgraph}
98 &
99 \begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
100 \psccurve[showpoints=true](1,1)(2,3)(3,2)(2,1)(3,1)
101 \end{psgraph}
102 &
103 \begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
104 \psecurve[showpoints=true](1,1)(2,3)(3,2)(2,1)(3,1)
105 \end{psgraph}
106
107 \\ \hline
108 \BSS{pscurve}[\RDD{showpoints}=true] & \BSS{psccurve}[showpoints=true] & \BSS{psecurve}[showpoints=true] \\
109 (1,1)(2,3)(3,2)(2,1)(3,1) & (1,1)(2,3)(3,2)(2,1)(3,1) & (1,1)(2,3)(3,2)(2,1)(3,1)\\
110 \hline
111 \end{tabular}
112
113
114 \bigskip
115 \begin{tabular}{|c|c|c|} \hline
116 \begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
117 \pswedge(1,2){2}{-30}{60}
118 \end{psgraph}
119 &
120 \begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
121 \psarc[showpoints=true](1,2){2}{-30}{60}
122 \end{psgraph}
123 &
124 \begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
125 \psbezier[showpoints=true](1,0)(4,4)(0,4)(3,0)
126 \end{psgraph}
127 \\ \hline
128 \BSS{pswedge} & \BSS{psarc}[showpoints=true] & \BSS{psbezier}[showpoints=true]\\
129 (1,2)\AC{2}\AC{-30}\AC{60} &(1,2)\AC{2}\AC{-30}\AC{60} & (1,0)(4,4)(0,4)(3,0)\\
130 \hline
131 \end{tabular}
132 %=====================================================
133
134 \bigskip
135 \begin{tabular}{|c|c|c|} \hline
136 \begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
137 \qline(1,1)(3,3)
138 \end{psgraph}
139 &
140 \begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
141 \qdisk(2,2){20pt}
142 \end{psgraph}
143 &
144 \begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
145 \psparabola(1,1)(2,3)
146 \end{psgraph}
147 \\ \hline
148 \BSS{qline} (1,1)(3,3) & \BSS{qdisk}(2,2)\AC{20pt} & \BSS{psparabola} \\
149 & & (1,1)(2,3) \\
150 \hline
151 % \end{tabular}
152 % %=====================================================
153 %
154 %\bigskip
155 %\begin{tabular}{|c|c|c|} \hline
156 \begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
157 \psRing(2,2){1}{2}
158 \end{psgraph}
159 &
160 \begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
161 \psRing(2,2)[180,60]{1}{2}
162 \end{psgraph}
163 &
164 \begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
165 \pscspline[showpoints](0,4)(1,1)(3,3)
166 (4,0)
167 \end{psgraph}
168 \\ \hline
169 \BSS{psRing} (2,2)\AC{1}\AC{2} & \BSS{psRing} (2,2) [180,60] \AC{1}\AC{2} & \BSS{pscspline}[showpoints](0,4)(1,1)(3,3) \\
170 \hline
171 \end{tabular}
172
173 \label{pscspline}
174
175 \bigskip
176
177
178 \begin{tabular}{|c|c|} \hline
179 \begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0,shift=*](0,0)(4,2){4cm}{4cm}
180 \psellipseAB(0,0)(4,2){1}
181 \pscircle[linestyle=dotted](2,1){1}
182 \psdots[linecolor=red](0,0)(4,2)
183 \end{psgraph}
184 &
185 \parbox[c]{8cm}{
186 \BSS{psellipseAB}(0,0)(4,2)\AC{1} \\
187 \BS{pscircle}[linestyle=dotted](2,1)\AC{1} \\
188 \BS{psdots}[linecolor=red](0,0)(4,2) }
189 \\ \hline
190 \end{tabular}
191
192 \label{psellipseAB}
193
194
195 %\subsection{Commandes avec un astérisque}
196 \SbSSCT{Commandes avec une astérisque}{Commands with asterik}
197
198
199 \begin{tabular}{|c|c|c|} \hline
200 \begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
201 \psline*(0, 0)(1, 1)(2, 1)(3, 3)
202 \end{psgraph}
203 &
204 \begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
205 \psdots*(1, 0.5)(2, 2.5)(3, 1.5)
206 \end{psgraph}
207 &
208 \begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
209 \pspolygon*(1, 0.5)(2, 3)(3, 1.5)(2.5,1)
210 \end{psgraph}\\ \hline
211 \BSS{psline*} & \BSS{psdots*} & \BSS{pspolygon*} \\
212 (0, 0)(1,1)(2,1)(3,3) & (1,0.5)(2,2.5)(3,1.5) & (1,0.5)(2,3)(3,1.5)(2.5,1) \\
213 \hline
214
215 \end{tabular}
216
217 %2222222222222222222222222222222222222222222222222222222222222
218
219 \bigskip
220 \begin{tabular}{|c|c|c|} \hline
221 \begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
222 \psframe*(1, 1)(3, 3)
223 \end{psgraph}
224 &
225 \begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
226 \psdiamond*(2,2)(1,1)
227 \end{psgraph}
228 &
229 \begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
230 \pstriangle*(2,1)(2,2)
231 \end{psgraph} \\ \hline
232 \BSS{psframe*} & \BSS{psdiamond*} & \BSS{pstriangle*} \\
233 (1, 1)(3, 3) & (2,2)(1,1) & (2,1)(2,2) \\
234 \hline
235 \end{tabular}
236
237 %3333333333333333333333333333333333333333333333333333333333333333333333333
238
239
240
241 \bigskip
242 \begin{tabular}{|c|c|c|} \hline
243 \begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
244 \pscircle*(2,2){1}
245 \end{psgraph}
246 &
247 \begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
248 \psarc*(2,2){1}{-30}{60}
249 \end{psgraph}
250 &
251 \begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
252 \psarcn*(2,2){1}{-30}{60}
253 \end{psgraph}
254 \\ \hline
255 \BSS{pscircle*} & \BSS{psarc*} & \BSS{psarcn*} \\
256 (2,2)\AC{1} & (2,2)\AC{1}\AC{-30}\AC{60} & (2,2)\AC{1}\AC{-30}\AC{60} \\
257 \hline
258 \end{tabular}
259
260 %44444444444444444444444444444444444444444444444444444444444444
261
262
263 \bigskip
264 \begin{tabular}{|c|c|c|} \hline
265 \begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
266 \psellipse*(2, 2)(1.5,1)
267 \end{psgraph}
268 &
269 \begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
270 \psellipticarc*(2, 2)(1.5,1){150}{30}
271 \end{psgraph}
272 &
273 \begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
274 \psellipticarcn*(2, 2)(1.5,1){150}{30}
275 \end{psgraph}
276 \\ \hline
277 \BSS{psellipse*} & \BSS{psellipticarc*} & \BSS{psellipticarcn*} \\
278 (2, 2)(1.5,1) & (2, 2)(1.5,1)\AC{150}\AC{30} & (2, 2)(1.5,1)\AC{150}\AC{30} \\
279 \hline
280 \end{tabular}
281
282 %55555555555555555555555555555555555555555555555555555555555555555
283
284
285 \bigskip
286 \begin{tabular}{|c|c|c|} \hline
287 \begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
288 \pscurve*[showpoints=true](1,1)(2,3)(3,2)(2,1)(3,1)
289 \end{psgraph}
290 &
291 \begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
292 \psccurve*[showpoints=true](1,1)(2,3)(3,2)(2,1)(3,1)
293 \end{psgraph}
294 &
295 \begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
296 \psecurve*[showpoints=true](1,1)(2,3)(3,2)(2,1)(3,1)
297 \end{psgraph}
298
299 \\ \hline
300 \BSS{pscurve*}[\RDD{showpoints}=true] & \BSS{psccurve*}[showpoints=true] & \BSS{psecurve*}[showpoints=true] \\
301 (1,1)(2,3)(3,2)(2,1)(3,1) & (1,1)(2,3)(3,2)(2,1)(3,1) & (1,1)(2,3)(3,2)(2,1)(3,1)\\
302 \hline
303 \end{tabular}
304
305
306 \bigskip
307 \begin{tabular}{|c|c|c|} \hline
308 \begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
309 \pswedge*(1,2){2}{-30}{60}
310 \end{psgraph}
311 &
312 \begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
313 \psarc*[showpoints=true](1,2){2}{-30}{60}
314 \end{psgraph}
315 &
316 \begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
317 \psbezier*[showpoints=true](1,0)(4,4)(0,4)(3,0)
318 \end{psgraph}
319 \\ \hline
320 \BSS{pswedge*} & \BSS{psarc*}[showpoints=true] & \BSS{psbezier*}[showpoints=true]\\
321 (1,2)\AC{2}\AC{-30}\AC{60} &(1,2)\AC{2}\AC{-30}\AC{60} & (1,0)(4,4)(0,4)(3,0)\\
322 \hline
323 \end{tabular}
324 %=====================================================
325
326 \bigskip
327 \begin{tabular}{|c|c|c|} \hline
328
329 \begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
330 \psparabola*(1,1)(2,3)
331 \end{psgraph}
332 &
333 \begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
334 \psRing*(2,2){1}{2}
335 \end{psgraph}
336 &
337 \begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0](0,0)(4,4){4cm}{4cm}
338 \psRing*(2,2)[180,60]{1}{2}
339 \end{psgraph}
340 \\ \hline
341 \BSS{psparabola} & \BSS{psRing} (2,2)\AC{1}\AC{2} & \BSS{psRing} (2,2) [180,60] \AC{1}\AC{2} \\
342 (1,1)(2,3) & & \\
343 \hline
344 \end{tabular}
345 %=====================================================
346 \bigskip
347
348 \begin{tabular}{|c|c|} \hline
349 \begin{psgraph}[axesstyle=none,xticksize=0 4cm,yticksize=0 4cm,subticks=0,shift=*](0,0)(4,2){4cm}{4cm}
350 \psellipseAB*(0,0)(4,2){1}
351 \pscircle[linestyle=dotted](2,1){1}
352 \psdots[linecolor=red](0,0)(4,2)
353 \end{psgraph}
354 &
355 \parbox[c]{8cm}{
356 \BSS{psellipseAB*}(0,0)(4,2)\AC{1} \\
357 \BS{pscircle}[linestyle=dotted](2,1)\AC{1} \\
358 \BS{psdots}[linecolor=red](0,0)(4,2) }
359 \\ \hline
360 \end{tabular}
361