Debian Codegraph @

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

raw
1 %\section{Syntaxe}
2 \psset{fillstyle=none,unit=1cm}
3
4 \subsection{Environnement}
5
6 \SbSbSSCT{Dans un environnement classique }{pspicture}
7
8 \begin{itemize}
9 \item Axes : Macro \BSS{psaxes} \BSI{psaxes}{pst-plot}
10 \item Quadrillages : Macro \BSS{psgrid} \BSI{psgrid}{pst-plot}
11 \end{itemize}
12
13 \SbSbSSCT{Dans un environnement psgraph}{psgraph}
14
15 \psset{linecolor=red,arrowscale=2}
16
17
18
19 \psset{linecolor=blue}
20 \TFRGB{Deux syntaxes}{Two syntaxes} :
21
22 \BSS{psgraph}[Options] \AC{\TFRGB{flèches}{arrows}}(xOrig,yOrig)(xMin,yMin)(xMax,yMax)\AC{\TFRGB{largeur graphe}{graph width}}
23 \AC{\TFRGB{hauteur graphe}{graph height}}
24 \BSS{endpsgraph}
25 \BSI{psgraph}{pst-plot} \BSI{endpsgraph}{pst-plot}
26
27 \TFRGB{ou}{or}
28
29 \BSS{begin\AC{psgraph}} [Options]\AC{\TFRGB{flèches}{arrows}}(xOrig,yOrig)(xMin,yMin)(xMax,yMax)
30 \AC{\TFRGB{largeur graphe}{graph width}}\AC{\TFRGB{hauteur graphe}{graph height}}
31 . . .
32 \BSS{end\AC{psgraph}}
33
34 \bigskip
35
36 \TFRGB{
37 Remarque :
38 \begin{itemize}
39 \item L'indication de la largeur et de la hauteur du graphe permettent la mise à l'échelle automatique
40 \item Si hauteur graphe = ! , les deux axes ont la même unité
41 \end{itemize}}{
42 Remarks :
43 \begin{itemize}
44 \item The indication of the width and height of the graph allow automatic scaling
45 \item If graph height =! , Both axes have the same unit
46 \end{itemize}}
47
48 %======================================
49
50 \SbSSCT{Type de tracé}{Type of graph}
51
52 %Option : \RDD{plotstyle}
53
54 \readdata{\dat}{table.dat}
55 \psset{xunit=.4cm,yunit=.3cm}
56 \psset{linecolor=blue,linewidth=2pt}
57
58
59 \begin{tabular}{|c|c|c|} \hline
60 \begin{pspicture}(-1.5,-1.5)(8.5,11)
61 \psaxes(0,0) (8,10)
62 \listplot[xticksize=0 10,yticksize= 0 8,Dx=1,dy=1,Dy=1,linecolor=red]{\dat}
63 \end{pspicture}
64 &
65 \begin{pspicture}(-1.5,-1.5)(8.5,11)
66 \psaxes(0,0) (8,10)
67 \listplot[plotstyle=dots,xticksize=0 10,yticksize= 0 8,Dx=1,dy=1,Dy=1,linecolor=red]{\dat}
68 \end{pspicture}
69 &
70 \begin{pspicture}(-1.5,-1.5)(8.5,11)
71 \psaxes(0,0) (8,10)
72 \listplot[plotstyle=polygon,xticksize=0 10,yticksize= 0 8,Dx=1,dy=1,Dy=1,linecolor=red]{\dat}
73 \end{pspicture}
74 \\ \hline
75 {\blue \dft }: \RDD{plotstyle}= \BDD{line} \BDI{line}{pst-plot} \RDI{plotstyle}{pst-plot} &
76 {\red plotstyle}= \BDD{dots} \BDI{dots}{pst-plot} &
77 {\red plotstyle}= \BDD{polygon} \BDI{polygon }{pst-plot} \\
78 \hline
79 \end{tabular}
80
81 \bigskip
82 \begin{tabular}{|c|c|c|} \hline
83 \begin{pspicture}(-1.5,-1.5)(8.5,11)
84 \psaxes(0,0) (8,10)
85 \listplot[plotstyle=curve,xticksize=0 10,yticksize= 0 8,Dx=1,dy=1,Dy=1,linecolor=red]{\dat}
86 \end{pspicture}
87 &
88 \begin{pspicture}(-1.5,-1.5)(8.5,11)
89 \psaxes(0,0) (8,10)
90 \listplot[plotstyle=ecurve,xticksize=0 10,yticksize= 0 8,Dx=1,dy=1,Dy=1,linecolor=red]{\dat}
91 \end{pspicture}
92 &
93 \begin{pspicture}(-1.5,-1.5)(8.5,11)
94 \psaxes(0,0) (8,10)
95 \listplot[plotstyle=ccurve,xticksize=0 10,yticksize= 0 8,Dx=1,dy=1,Dy=1,linecolor=red]{\dat}
96 \end{pspicture}
97 \\ \hline
98 {\red plotstyle}= \BDD{curve} \BDI{curve}{pst-plot} &
99 {\red plotstyle}=\BDD{ecurve} \BDI{ecurve}{pst-plot} &
100 {\red plotstyle}= \BDD{ccurve} \BDI{ccurve}{pst-plot} \\
101 \hline
102 \end{tabular}
103
104 \bigskip
105 \begin{tabular}{|c|c|c|} \hline
106 \begin{pspicture}(-1.5,-1.5)(8.5,11)
107 \psaxes(0,0) (8,10)
108 \listplot[plotstyle=bar,linecolor=red]{\dat}
109 \end{pspicture}
110 &
111 \begin{pspicture}(-1.5,-1.5)(8.5,11)
112 \psaxes(0,0) (8,10)
113 \listplot[plotstyle=ybar,linecolor=red]{\dat}
114 \end{pspicture}
115 &
116 \begin{pspicture}(-1.5,-1.5)(8.5,11)
117 \psaxes(0,0) (8,10)
118 \listplot[plotstyle=dots,linecolor=red]{\dat}
119 \listplot[plotstyle=xvalues]{\dat}
120 \end{pspicture}
121 \\ \hline
122 {\red plotstyle}= \BDD{bar} \BDI{bar}{pst-plot} &
123 {\red plotstyle}= \BDD{ybar} \BDI{ybar}{pst-plot} &
124 {\red plotstyle}= \BDD{xvalues } \BDI{xvalues }{pst-plot}\\
125 \hline
126 \end{tabular}
127
128 \bigskip
129 \begin{tabular}{|c|c|c|} \hline
130 \begin{pspicture}(-1.5,-1.5)(8.5,11)
131 \psaxes(0,0) (8,10)
132 \listplot[plotstyle=LineToXAxis,linecolor=red]{\dat}
133 \end{pspicture}
134 &
135 \begin{pspicture}(-1.5,-1.5)(8.5,11)
136 \psaxes(0,0) (8,10)
137 \listplot[plotstyle=LineToYAxis,linecolor=red]{\dat}
138 \end{pspicture}
139 &
140 \begin{pspicture}(-1.5,-1.5)(8.5,11)
141 \psaxes(0,0) (8,10)
142 \listplot[plotstyle=dots,linecolor=red]{\dat}
143 \listplot[plotstyle=values]{\dat}
144 \end{pspicture}
145 \\ \hline
146 {\red plotstyle}= \BDD{LineToXAxis} \BDI{LineToXAxis}{pst-plot} &
147 {\red plotstyle}= \BDD{LineToYAxis} \BDI{LineToYAxis}{pst-plot} &
148 {\red plotstyle}= \BDD{values} \BDI{values}{pst-plot} \\
149 \hline
150 \end{tabular}
151
152 \bigskip
153 \begin{tabular}{|c|c|c|} \hline
154 \begin{pspicture}(-1.5,-1.5)(8.5,11)
155 \psaxes(0,0) (8,10)
156
157 \listplot[Hue=300,plotstyle=colordots]{\dat}
158 \end{pspicture}
159 &
160 \begin{pspicture}(-1.5,-1.5)(8.5,11)
161 \psaxes(0,0) (8,10)
162 \listplot[plotstyle=dots,linecolor=red]{\dat}
163 \listplot[plotstyle=LSM,linecolor=magenta]{\dat}
164 \end{pspicture}
165 &
166 \begin{pspicture}(-1.5,-1.5)(8.5,11)
167 \psaxes(0,0) (8,10)
168 \listplot[shadow=true,plotstyle=bar]{\dat}
169 \end{pspicture}
170 \\ \hline
171 Hue=100,{\red plotstyle}= \BDD{colordots} \BDI{colordots}{pst-plot} &
172 {\red plotstyle}= \BDD{LSM} \BDI{LSM}{pst-plot} & shadow=true,{\red plotstyle}=\BDD{bar} \BDI{bar}{pst-plot} \\
173 \hline
174 \end{tabular}
175
176
177 %=================================================
178
179 \SbSSCT{Les axes }{Axes}
180 \SbSbSSCT{Dimensionnement}{Dimensioning}
181
182 \psset{unit=1cm,linewidth=1pt}
183
184 \begin{tabular}{|c|c|} \hline
185 \BSS{psaxes}\AC{<->}\rnode[fillcolor=yellow]{AA}{(0,0)}\rnode[fillcolor=green]{BB}{(-1,-2)}\rnode[fillcolor=cyan]{CC}{(3,3)}
186 &
187 \textbf{\BS{psaxes}}\AC{->}\rnode[fillcolor=cyan]{DD}{(4,2)} \\
188 & \\ \hline
189
190 \begin{pspicture}[shift=*](-1.5,-3)(4.5,3.5)
191 \psaxes[linecolor=black,linewidth=2pt]{<->}(0,0)(-1,-2)(3,3)
192 \dotnode[dotstyle=*](0,0){A}
193 \dotnode[dotstyle=*](-1,-2){B}
194 \dotnode[dotstyle=*](3,3){C}
195 \ncarc[angleB=135]{->}{AA}{A}
196 \ncbar[angleA=-90,angleB=135]{->}{BB}{B}
197 \ncline{->}{CC}{C}
198 \end{pspicture}
199 &
200 \begin{pspicture}[shift=*](-.5,-.5)(5,2.5)
201 \psaxes[linecolor=black,linewidth=2pt]{->}(4.5,2.5)
202 \dotnode[dotstyle=*](4,2){D}
203 \ncline{->}{DD}{D}
204 \end{pspicture}
205 \\ \hline
206 \end{tabular}
207
208 %----------------------------------------------------------
209 \psset{unit=.7cm}
210 \subsubsection{Types d'axes}
211
212
213 \psset{unit=.7cm}
214
215 \begin{tabular}{|c|c|c|} \hline
216 \begin{pspicture}(-1,-1)(4,4)
217 \psaxes[axesstyle=none]{->}(3,3)
218 \end{pspicture}
219 &
220 \begin{pspicture}(-1,-1)(4,4)
221 \psaxes[axesstyle=frame]{->}(3,3)
222 \end{pspicture}
223 &
224 \begin{pspicture}(-3,-3)(3,3)
225 \psaxes[axesstyle=polar]{->}(2,2)
226 \end{pspicture} \\
227 \hline
228 \RDD{axesstyle}=none \RDI{axesstyle}{pst-plot} & {\red axesstyle}=frame & {\red axesstyle}=polar\\ \hline
229 \multicolumn{3}{|c|}{ \blue \dft : {\red axesstyle}=axes } \\ \hline
230
231 \end{tabular}
232
233
234 %--------------------------------------------------
235 \SbSbSSCT{Choix des axes}{choice of axes}
236
237
238 \psset{unit=0.5cm}
239 \begin{tabular}{|c|c|c|c|} \hline
240 \begin{pspicture}(-1,-1)(4,4)
241 \psaxes[xyAxes=true]{->}(3,3)
242 \end{pspicture}
243 &
244 \begin{pspicture}(-1,-1)(4,4)
245 \psaxes[xyAxes=false]{->}(3,3)
246 \end{pspicture}
247 & \begin{pspicture}(-1,-1)(4,4)
248 \psaxes[xAxis=false]{->}(3,3)
249 \end{pspicture}
250 & \begin{pspicture}(-1,-1)(4,4)
251 \psaxes[yAxis=false]{->}(3,3)
252 \end{pspicture} \\ \hline
253 \RDD{xyAxes}=true \RDI{xyAxes}{pst-plot} & xyAxes=false & \RDD{xAxis}=false \RDI{xAxis}{pst-plot} & \RDD{yAxis}=false \RDI{yAxis}{pst-plot} \\ \hline
254 \multicolumn{4}{|c|}{\blue \dft : xAxis = yAxis = xyAxes = true } \\ \hline
255 \end{tabular}
256
257 %----------------------------------------------------------------
258
259 \SbSbSSCT{Espacement des graduations}{Units of the axis}
260
261
262 \psset{xunit=.9cm,yunit=.9cm}
263 \begin{tabular}{|c|c|c|} \hline
264
265 \begin{pspicture}(-1,-1)(3.5,3.5)
266 \psaxes[Ox=2,Dx=2.0,Dy=.5]{->}(3,3)
267 \end{pspicture}
268 &
269 \begin{pspicture}(-1,-1)(3.5,3.5)
270 \psaxes[Oy=2,dx=.5,dy=1.5]{->}(3,3)
271 \end{pspicture}
272 &
273 \begin{pspicture}(-1,-1)(3.5,3.5)
274 \psaxes[dx=.5,Dx=2,dy=.5,Dy=1.5]{->}(3,3)
275 \end{pspicture} \\ \hline
276 \RDD{Ox}=2 \RDI{Ox}{pst-plot} &
277 \RDD{Oy}=2 \RDI{Oy}{pst-plot} & {\red dx}=.5 {\red Dx}=2 \\
278 \RDD{Dx}=2.0 \RDI{Dx}{pst-plot} &
279 \RDD{dx}=.5 \RDI{dx}{pst-plot} &
280 {\red dy}=.5 {\red Dy}= 1.5 \\
281 \RDD{Dy}=0.5 \RDI{Dy}{pst-plot} &
282 \RDD{dy}=1.5 \RDI{dy}{pst-plot} & \\
283 \hline
284 \multicolumn{3}{|c|}{ \blue \dft{}: Ox = Oy= 0 \hspace{1cm} Dx= Dy = 1 }
285 \\ \hline
286
287 \end{tabular}
288
289
290 %====================================================
291 \SbSbSSCT{Origine}{Origin}
292
293
294 \begin{tabular}{|c|c|}\hline
295 \begin{pspicture}(-1,-1)(4,4)
296 \psaxes[showorigin=true]{->}(3,3)
297 \end{pspicture}
298 &
299 \begin{pspicture}(-1,-1)(4,4)
300 \psaxes[showorigin=false]{->}(3,3)
301 \end{pspicture} \\
302 \hline
303 \RDD{showorigin}=true \RDI{showorigin}{pst-plot} {\blue (\dft)} & {\red showorigin}=false \\
304 \hline
305 \end{tabular}
306
307
308 %-----------------------------------------------------------------------
309 \SbSbSSCT{Titres des axes}{Titles on axes}
310
311 %\emph{Commande simple :}
312
313 %syntaxe :\BS{}psaxes\AC{flèche}(coordonnée origine)(coordonnée maximale)[titre axe X,position angulaire][titre axe Y,position angulaire]
314 %\smallskip
315
316
317
318
319 \begin{tabular}{|c|} \hline
320
321 \BS{}psaxes\AC{->}(0,0)(6,5)[$X$,-90][$Y$,180]
322 \\ \hline
323 \begin{pspicture*}(-1,-1)(7,3)
324 \psaxes{->}(0,0)(6,2.5)[{\red $X$},-90][{\red$Y$},180]
325 \end{pspicture*}
326
327 \\ \hline
328 \end{tabular}
329
330
331 %\bigskip
332 %\emph{Options avancées}
333
334 %\smallskip
335 %\begin{tabular}{|c|c|c|l|} \hline
336 %nom & type & \dft & Rôle \\\hline
337 %\RDD{xAxisLabel} & texte & & titre axe X \\
338 %\RDD{yAxisLabel} & texte & & titre axe Y \\
339 %\RDD{xAxisLabelPos} & (x,y) (centré si x= c) & & position du titre axe X \\
340 %\RDD{yAxisLabelPos} & (x,y) (centré si y= c) & & position du titre axe Y \\ \hline
341 %\multicolumn{4}{|c|}{correction taille de la boîte contenant le graphique} \\
342 %\multicolumn{4}{|c|}{A définir avant la commande \BS{psgraph} grâce à la commande \BS{psset}}
343 % \\\hline
344 %\RDD{urx} & dimension & 0pt & coin supérieur droit en Y \\
345 %\RDD{ury} & dimension & 0pt & coin supérieur droit en X \\
346 %\RDD{llx} & dimension & 0pt & coin inférieur gauche en X \\
347 %\RDD{lly} & dimension & 0pt & coin inférieur gauche en Y \\
348 %\hline
349 %\end{tabular}
350 %
351 %\bigskip
352
353 \begin{tabular}{|c|c|} \hline
354 \multicolumn{2}{|c|}{\BS{psset}\AC{\RDD{llx}=0,\RDD{lly}=0,\RDD{urx}=0,\RDD{ury}=0,\RDD{xAxisLabel}=X,\RDD{yAxisLabel}=titre axe Y,\RDD{yAxisLabelPos}=\AC{-1cm,c}}
355 }\\
356 \multicolumn{2}{|c|}{\RDI{llx}{pst-plot} \RDI{lly}{pst-plot} \RDI{urx}{pst-plot} \RDI{ury}{pst-plot}
357 \RDI{xAxisLabel}{pst-plot} \RDI{yAxisLabel}{pst-plot}
358 \RDI{yAxisLabelPos}{pst-plot}}
359 \\
360 & \\ \hline
361 \rule{6cm}{0pt} & \rule{6cm}{0pt} \\
362
363
364 \psframebox[linestyle=dashed,linecolor=red]{
365 \psset{llx=0,lly=0,urx=0,ury=0,xAxisLabel=X,yAxisLabel=titre axe Y,yAxisLabelPos={-1cm,c}}
366 \begin{psgraph}[axesstyle=frame,](0,0)(3,3){4cm}{3cm}%
367 \end{psgraph}}
368 &
369 \psframebox[linestyle=dashed,linecolor=red]{
370 \psset{llx=-1cm,lly=-1.25cm,urx=.5cm,ury=.51cm,xAxisLabel=titre axe X, yAxisLabel=Y,xAxisLabelPos={c,-1cm}}
371 \begin{psgraph}[axesstyle=frame,](0,0)(3,3){4 cm}{3cm}%
372 \end{psgraph}} \\
373 \rule[-1cm]{6cm}{0pt} & \rule{6cm}{0pt}
374 \\ \hline
375 {\red xAxisLabel}=X & {\red xAxisLabel}=titre axe X \\
376 {\red yAxisLabel}=titre axe Y & {\red yAxisLabel}= Y \\
377 {\red llx}=0 & {\red llx}=-1cm \\
378 {\red lly}=0 & {\red lly}=-1.25cm \\
379 {\red urx}=0 & {\red urx}=.5cm \\
380 {\red ury}=0 & {\red ury}=.5cm \\
381 {\red yAxisLabelPos}=\AC{-1cm,c} & \RDD{xAxisLabelPos}=\AC{c,-1cm} \RDI{xAxisLabelPos}{pst-plot} \\
382 \hline
383 \end{tabular}
384
385
386
387 \psset{xAxisLabel={} ,yAxisLabel={}}
388
389
390
391 %-----------------------------------------------------------
392 \SbSSCT{Marques de graduations}{Ticks marks}
393
394 \SbSbSSCT{Style des marques de graduation}{Style of the tick marks}
395
396
397 \psset{yunit=0.7cm,xunit=0.7cm}
398
399 \begin{tabular}{|c|c|c|c|} \hline
400 \begin{pspicture}(-1,-1)(3.5,3.5)
401 \psaxes[tickstyle=full]{->}(3,3)
402 \end{pspicture}
403 &
404 \begin{pspicture}(-1,-1)(3.5,3.5)
405 \psaxes[tickstyle=top]{->}(3,3)
406 \end{pspicture}
407 &
408 \begin{pspicture}(-1,-1)(3.5,3.5)
409 \psaxes[tickstyle=bottom]{->}(3,3)
410 \end{pspicture}
411 &
412 \begin{pspicture}(-1,-1)(3.5,3.5)
413 \psaxes[axesstyle=frame,tickstyle=inner]{->}(3,3)
414 \end{pspicture}
415 \\ \hline
416 \RDD{tickstyle}=full {\blue (\dft)} \RDI{tickstyle}{pst-plot} &
417 {\red tickstyle}=top & {\red tickstyle}=bottom & {\red tickstyle}=inner \\
418 & & & axesstyle=frame \\ \hline
419 \end{tabular}
420
421
422
423 \SbSbSSCT{Présence des marques de graduation}{Ticks on axes}
424 %--------------------------------------------------
425
426 \psset{yunit=0.7cm,xunit=0.7cm}
427
428 \begin{tabular}{|c|c|c|c|} \hline
429 \begin{pspicture}(-1,-1)(3.5,3.5)
430 \psaxes[ticks=all]{->}(3,3)
431 \end{pspicture}
432 &
433 \begin{pspicture}(-1,-1)(3.5,3.5)
434 \psaxes[ticks=x]{->}(3,3)
435 \end{pspicture}
436 &
437 \begin{pspicture}(-1,-1)(3.5,3.5)
438 \psaxes[ticks=y]{->}(3,3)
439 \end{pspicture}
440 &
441 \begin{pspicture}(-1,-1)(3.5,3.5)
442 \psaxes[ticks=none]{->}(3,3)
443 \end{pspicture} \\ \hline
444 \RDD{ticks}=all {\blue ( \dft )} \RDI{ticks}{pst-plot} & {\red ticks}=x & {\red ticks}=y & {\red ticks}=none \\ \hline
445 \end{tabular}
446
447
448 %--------------------------------------------------
449
450 \SbSbSSCT{Taille des graduations}{Size of ticks marks}
451
452
453
454 \begin{tabular}{|c|c|c|} \hline
455 \begin{pspicture}[ticksize=-5pt 10pt](-1,-1)(4,4)
456 \psaxes{->}(3,3)
457 \end{pspicture}
458 &
459 \begin{pspicture}(-1,-1)(4,4)
460 \psaxes[xticksize=2,yticksize=2](3,3)
461 \end{pspicture}
462 &
463 \begin{pspicture}(-1,-1)(4,4)
464 \psaxes[xticksize=5pt 0pt,yticksize=10pt 0pt](3,3)
465 \end{pspicture}
466 \\ \hline
467 \RDD{ticksize}=5pt 10pt \RDI{ticksize}{pst-plot} & \RDD{xticksize}=2 \RDI{xticksize}{pst-plot} & {\red xticksize}=5pt 0pt \\ \hline
468 & {\red yticksize}=2 & \RDD{yticksize}=10pt 0pt \RDI{yticksize}{pst-plot} \\ \hline
469 \multicolumn{3}{|c|}{\blue \dft : ticksize = xticksize = yticksize = -4pt 4pt} \\ \hline
470 \end{tabular}
471
472
473 %--------------------------------------------------
474
475 \psset{unit=.7cm}
476 \SbSbSSCT{\'Epaisseur des graduations}{Width of ticks marks}
477
478 \begin{tabular}{|c|c|c|} \hline
479 \begin{pspicture}[subticks=3,tickwidth=10pt](-1,-1)(4,4)
480 \psaxes{->}(3,3)
481 \end{pspicture}
482 &
483 \begin{pspicture}(-1,-1)(4,4)
484 \psaxes[subticks=3,subtickwidth=5pt]{->}(3,3)
485 \end{pspicture}
486 &
487 \begin{pspicture}(-1,-1)(4,4)
488 \psaxes[subticks=3,tickwidth=1em,subtickwidth=1ex]{->}(3,3)
489 \end{pspicture}
490 \\ \hline
491 \RDD{tickwidth}=10pt \RDI{tickwidth}{pst-plot} & \RDD{subtickwidth}=5pt \RDI{subtickwidth}{pst-plot} &
492 {\red tickwidth}=1em \\
493 & & {\red subtickwidth}=1ex \\ \hline
494 \multicolumn{3}{|c|}{\blue \dft : tickwidth = subtickwidth = 0.5\BS{pslinewidth}} \\ \hline
495 \end{tabular}
496
497
498
499 \SbSbSSCT{Nombre de graduations secondaires }{Number of subticks}
500 %--------------------------------------------------
501
502 \begin{tabular}{|c|c|c|} \hline
503 \begin{pspicture}[subticks=3](-1,-1)(4,4)
504 \psaxes{->}(3,3)
505 \end{pspicture}
506 &
507 \begin{pspicture}(-1,-1)(4,4)
508 \psaxes[xsubticks=3]{->}(3,3)
509 \end{pspicture}
510 &
511 \begin{pspicture}(-1,-1)(4,4)
512 \psaxes[ysubticks=3]{->}(3,3)
513 \end{pspicture}
514 \\ \hline
515 \RDD{subticks}=2 \RDI{subticks}{pst-plot} & \RDD{xsubticks}=2 \RDI{xsubticks}{pst-plot} & \RDD{ysubticks}=2 \RDI{ysubticks}{pst-plot} \\ \hline
516 \multicolumn{3}{|c|}{\blue \dft subticks = xsubticks = ysubticks = 0 } \\ \hline
517
518 \end{tabular}
519
520
521 %--------------------------------------------------
522 \SbSbSSCT{Tailles des marques de graduation secondaires / principales }{Size of subticks}
523
524 \begin{tabular}{|c|c|c|} \hline
525 \begin{pspicture}[subticks=3,subticksize =1](-1,-1)(4,4)
526 \psaxes{->}(3,3)
527 \end{pspicture}
528 &
529 \begin{pspicture}(-1,-1)(4,4)
530 \psaxes[xsubticks=3,xsubticksize=.5]{->}(3,3)
531 \end{pspicture}
532 &
533 \begin{pspicture}(-1,-1)(4,4)
534 \psaxes[ysubticks=3,ysubticksize=2 ]{->}(3,3)
535 \end{pspicture}
536 \\ \hline
537 \RDD{subticksize}=1 \RDI{subticksize}{pst-plot} & \RDD{xsubticksize}=.5 \RDI{xsubticksize}{pst-plot} & \RDD{ysubticksize}=2 \RDI{ysubticksize}{pst-plot} \\ \hline
538 \multicolumn{3}{|c|}{\blue \dft{} : subticksize = xsubticksize = subticksize = 0.75 } \\ \hline
539
540 \end{tabular}
541
542
543
544 %--------------------------------------------------
545 \SbSbSSCT{Couleurs des marques de graduation}{Color of tick marks}
546
547 \begin{tabular}{|c|c|c|} \hline
548 \begin{pspicture}[subticks=3,tickcolor=red,subtickcolor=green](-1,-1)(4,4)
549 \psaxes{->}(3,3)
550 \end{pspicture}
551 &
552 \begin{pspicture}(-1,-1)(4,4)
553 \psaxes[xsubticks=3,xtickcolor=red,xsubtickcolor=green]{->}(3,3)
554 \end{pspicture}
555 &
556 \begin{pspicture}(-1,-1)(4,4)
557 \psaxes[ysubticks=3,ytickcolor=red,ysubtickcolor=green]{->}(3,3)
558 \end{pspicture}
559 \\ \hline
560 \RDD{tickcolor}=red \RDI{tickcolor}{pst-plot} & \RDD{xtickcolor}=red \RDI{xtickcolor}{pst-plot} & \RDD{ytickcolor}=red \RDI{ytickcolor}{pst-plot} \\
561 \RDD{subtickcolor}=green \RDI{subtickcolor}{pst-plot} & \RDD{xsubtickcolor}=green \RDI{xsubtickcolor}{pst-plot} & \RDD{ysubtickcolor}=green \RDI{ysubtickcolor}{pst-plot} \\ \hline
562 \multicolumn{3}{|c|}{ \blue \dft{} : tickcolor = xtickcolor = ytickcolor = black } \\
563 \multicolumn{3}{|c|}{ \blue subtickcolor = xsubtickcolor = ysubtickcolor = darkgray } \\ \hline
564 \end{tabular}
565
566 %--------------------------------------------------
567 \SbSbSSCT{Style des marques de graduation}{Style of ticks}
568
569 \psset{unit=.7cm}
570
571 \begin{tabular}{|c|c|c|} \hline
572 \begin{pspicture}(-1,-1)(4,4)
573 \psaxes[ticksize=3,subticksize=1,subticks=3,yticklinestyle=dashed,xticklinestyle =dotted]
574 (3,3)
575 \end{pspicture}
576 &
577 \begin{pspicture}(-1,-1)(4,4)
578 \psaxes[ticksize=3,subticksize=1,subticks=3,xsubticklinestyle=solid,ysubticklinestyle=none ](3,3)
579 \end{pspicture}
580 &
581 \begin{pspicture}(-1,-1)(4,4)
582 \psaxes[ticksize=3,,subticksize=1,subticks=3,ticklinestyle= dotted,subticklinestyle=dashed ](3,3)
583 \end{pspicture}
584 \\ \hline
585 \RDD{yticklinestyle}=dashed
586 \RDI{yticklinestyle}{pst-plot} &
587
588 \RDD{xsubticklinestyle}=solid \RDI{xsubticklinestyle}{pst-plot} &
589
590 \RDD{ticklinestyle}= dotted
591 \RDI{ticklinestyle}{pst-plot} \\
592
593 \RDD{xticklinestyle}=dotted
594 \RDI{xticklinestyle}{pst-plot} &
595
596 \RDD{ysubticklinestyle}=none
597 \RDI{ysubticklinestyle}{pst-plot} &
598
599 \RDD{subticklinestyle}=dashed \RDI{subticklinestyle}{pst-plot} \\
600 \hline
601 \multicolumn{3}{|c|}{\blue \dft{} : ticklinestyle = xticklinestyle = yticklinestyle = solid }\\
602 \multicolumn{3}{|c|}{\blue subticklinestyle = xsubticklinestyle = ysubticklinestyle = solid } \\ \hline
603 \multicolumn{3}{|c|}{ \textbf{Option} : solid/dashed/dotted/none } \\ \hline
604 \end{tabular}
605
606
607
608
609 %--------------------------------------------------
610 \SbSSCT{\'Etiquettes de graduation}{Labels on axis}
611 \SbSbSSCT{\'Etiquettes}{Choice of axis}
612
613
614 \psset{unit=0.5cm}
615
616 \begin{tabular}{|c|c|c|c|}
617 \hline
618 \begin{pspicture}(-1,-1)(4,4)
619 \psaxes[labels=all]{->}(3,3)
620 \end{pspicture}
621 & \begin{pspicture}(-1,-1)(4,4)
622 \psaxes[labels=x]{->}(3,3)
623 \end{pspicture}
624 & \begin{pspicture}(-1,-1)(4,4)
625 \psaxes[labels=y]{->}(3,3)
626 \end{pspicture}
627 & \begin{pspicture}(-1,-1)(4,4)
628 \psaxes[labels=none]{->}(3,3)
629 \end{pspicture} \\
630 \hline
631 \RDD{labels}= all {\blue (\dft)} \RDI{labels}{pst-plot} &
632 {\red labels}=x & {\red labels}=y & {\red labels}=none \\ \hline
633 \end{tabular}
634
635
636 %--------------------------------------------------
637 \SbSSCT{Position des étiquettes}{Position of labels}
638
639
640 \psset{unit=0.7cm}
641 \begin{tabular}{|c|c|c|}
642 \hline \begin{pspicture}(-1,-1)(4,4)
643 \psaxes[ylabelPos=axis, xlabelPos=axis,tickcolor=red]{->}(3,3)
644 \end{pspicture}
645 & \begin{pspicture}(-1,-1)(4,4)
646 \psaxes[ylabelPos=right, xlabelPos=bottom,tickcolor=red]{->}(3,3)
647 \end{pspicture}
648 & \begin{pspicture}(-1,-1)(4,4)
649 \psaxes[ ylabelPos=left, xlabelPos=top,tickcolor=red]{->}(3,3)
650 \end{pspicture} \\
651 \hline \RDD{xlabelPos}=axis \RDI{xlabelPos}{pst-plot}
652 & {\red xlabelPos}=bottom {\blue (\dft)}
653 & {\red xlabelPos=top} \\
654 \RDD{ylabelPos}=axis \RDI{ylabelPos}{pst-plot}
655 & {\red ylabelPos}=right
656 & {\red ylabelPos}=left {\blue (\dft)} \\
657 \hline
658 \end{tabular}
659
660
661
662 \bigskip
663 \psset{unit=0.7cm}
664 \begin{tabular}{|c|c|c|}
665 \hline \begin{pspicture}(-1,-1)(4,4)
666 \psaxes[labelsep=.5cm,tickcolor=red]{->}(3,3)
667 \end{pspicture}
668 & \begin{pspicture}(-1,-1)(4,4)
669 \psaxes[xlabelsep=-.5cm, ylabelsep=.5cm,,tickcolor=red]{->}(3,3)
670 \end{pspicture}
671 & \begin{pspicture}(-1,-1)(4,4)
672 \psaxes[ylabelsep=-.5cm, xlabelsep=.5cm,tickcolor=red]{->}(3,3)
673 \end{pspicture} \\
674 \hline
675 \RDD{labelsep}= .5cm \RDI{labelsep}{pst-plot}
676 &
677 \RDD{xlabelsep}= -.5cm \RDI{xlabelsep}{pst-plot}
678 &
679 {\red xlabelsep}= .5cm
680 \\
681
682 &
683 \RDD{ylabelsep}= .5cm \RDI{ylabelsep}{pst-plot}
684 &
685 {\red ylabelsep}=-.5cm
686 \\ \hline
687 \multicolumn{3}{|c|}{ \blue \dft{} : labelsep = 5pt, xlabelsep = 5pt, ylabelsep =5pt } \\ \hline
688 \end{tabular}
689 \bigskip
690
691 \psset{unit=0.7cm}
692 \begin{tabular}{|c|c|c|}
693 \hline \begin{pspicture}(-1,-1)(4,4)
694 \psaxes[xlabelOffset=0.5,tickcolor=red]{->}(3,3)
695 \end{pspicture}
696 & \begin{pspicture}(-1,-1)(4,4)
697 \psaxes[ylabelOffset=0.5,tickcolor=red]{->}(3,3)
698 \end{pspicture}
699 & \begin{pspicture}(-1,-1)(4,4)
700 \psaxes[ xlabelOffset=-0.5,tickcolor=red]{->}(3,3)
701 \end{pspicture} \\ \hline
702 \RDD{xlabelOffset}=0.5 \RDI{xlabelOffset}{pst-plot}
703 &
704 \RDD{ylabelOffset}=0.5 \RDI{ylabelOffset}{pst-plot}
705 &
706 \RDD{xlabelOffset}= -0.5 \RDI{xlabelOffset}{pst-plot}
707 \\ \hline
708 \multicolumn{3}{|c|}{ \blue \dft{} : xlabelOffset =0 , xlabelOffset = 0 } \\ \hline
709 \end{tabular}
710
711
712 % % % % % % % % % % % % A voir
713 %%--------------------------------------------------
714 \SbSbSSCT{Taille des étiquettes }{Size of labels}
715
716 \psset{unit=0.5cm}
717
718 \begin{tabular}{|c|c|c|}
719 \hline \begin{pspicture}(-1,-1)(4,4)
720 \psaxes[labelFontSize=\scriptstyle]{->}(3,3)
721 \end{pspicture}
722 & % \psset{mathLabel=false}
723 \begin{pspicture}(-1,-1)(4,4)
724 \psaxes[xlabelFontSize=\footnotesize]{->}(3,3)
725 \end{pspicture}
726 &
727 %\psset{mathLabel=true}
728 \begin{pspicture}(-1,-1)(4,4)
729 \psaxes[ylabelFontSize=\small]{->}(3,3)
730 \end{pspicture} \\
731 \hline
732 \RDD{labelFontSize}=\BS{scriptstyle} \RDI{labelFontSize}{pst-plot} &
733
734 \RDD{xlabelFontSize}=\BS{}footnotesize \RDI{xlabelFontSize}{pst-plot}
735 &
736
737 \RDD{ylabelFontSize}=\BS{}small
738 \RDI{ylabelFontSize}{pst-plot}
739 \\ \hline
740 \end{tabular}
741 %
742 %
743 %%\psset{mathLabel=false}
744 %%--------------------------------------------------
745 \SbSbSSCT{\'Etiquette avec extension}{Labels with extra}
746
747 \psset{yunit=0.5cm,xunit=1.2cm}
748
749 \begin{tabular}{|c|c|}
750 \hline
751 \begin{pspicture}(-1.5,-1.5)(3.5,3.5)
752 \psaxes[xlabelFactor=$$\cdot 10^3 $$,ylabelFactor= V]{->}(3,3)
753 \end{pspicture}
754 &
755 \begin{pspicture}(-1.5,-1.5)(3.5,3.5)
756 \psaxes[ylabelFactor=$$\cdot 10^6$$,xlabelFactor=s]{->}(3,3)
757 \end{pspicture} \\ \hline
758 \RDD{xlabelFactor}=\BS{cdot} $10^3$ \RDI{xlabelFactor}{pst-plot} & {\red xlabelFactor}= s \\
759 {\red ylabelFactor}= V & \RDD{ylabelFactor}=$\cdot 10^6$ \RDI{ylabelFactor}{pst-plot}
760 \\ \hline
761
762 \end{tabular}
763
764
765
766 %--------------------------------------------------
767 \SbSbSSCT{Les décimales dans les étiquettes}{Decimals in labels}
768
769
770 \psset{yunit=0.5cm,xunit=0.65cm}
771
772 \begin{tabular}{|c|c|c|}
773 \hline \begin{pspicture}(-1.5,-1)(4,4)
774 \psaxes[comma=true,xyDecimals=1]{->}(3,3)
775 \end{pspicture}
776 &
777 \begin{pspicture}(-1.5,-1)(4,4)
778 \psaxes[comma=false,xDecimals=1]{->}(3,3)
779 \end{pspicture}
780 &
781 \begin{pspicture}(-1.5,-1)(4,4)
782 \psaxes[decimalSeparator=h,yDecimals=2]{->}(3,3)
783 \end{pspicture} \\
784 \hline
785 \RDD{comma}=true \RDI{comma}{pst-plot}
786 & {\red comma}= false {\blue (\dft )}
787 & \RDD{decimalSeparator}=h \RDI{decimalSeparator}{pst-plot} \\
788 \RDD{xyDecimals}=1 \RDI{xyDecimals}{pst-plot}
789 & \RDD{xDecimals}=1 \RDI{xDecimals}{pst-plot}
790 & \RDD{yDecimals}=2 \RDI{yDecimals}{pst-plot}\\
791
792 \hline
793 \end{tabular}
794
795 %------------------------------------------------------------------------------
796 \SbSbSSCT{Liste comme étiquettes de graduations}{List of labels as axis}
797
798
799 \begin{center}
800 \begin{tabular}{|c|} \hline
801 \begin{psgraph}[labels=none](5,4){5cm}{3cm}
802 \TFRGB{\psaxes[xLabels={,un,deux,trois,quatre},xLabelsRot=45,yLabels={,petit,moyen,grand},yLabelsRot=30](5,4)}{\psaxes[xLabels={,one,two,three,four},xLabelsRot=45,yLabels={,small,big,huge},yLabelsRot=30](5,4)}
803 \end{psgraph} \\
804 \\ \hline
805 % \BS{}begin\AC{psgraph}[labels=none](5,4)\AC{5cm}\AC{3cm} \\
806 \TFRGB{\BS{}psaxes[\RDD{xLabels}=\AC{,un,deux,trois,quatre},\RDD{xLabelsRot}=45,}{\BS{}psaxes[\RDD{xLabels}=\AC{,one,two,three,four},\RDD{xLabelsRot}=45,}
807 \RDI{xLabels}{pst-plot} \RDI{xLabelsRot}{pst-plot} \\
808 \TFRGB{\RDD{yLabels}=\AC{,petit,moyen,grand},\RDD{yLabelsRot}=30](5,4)}{\RDD{yLabels}=\AC{,small,big,huge},\RDD{yLabelsRot}=30](5,4)} \RDI{yLabelsRot}{pst-plot} \\ \hline
809 \end{tabular}
810 \end{center}
811
812
813
814 \newpage
815 %-----------------------------------------------------------------------
816 \SbSSCT{Légende}{Legend}
817 \SbSbSSCT{Position de la légende}{Legend position}
818
819 %\TFRGB{
820 %Syntaxe :
821 %\BS{pslegend}[position] (décalage en x,décalage `en y ) \AC{Légende }}
822 %{Syntax :
823 %\BS{pslegend}[position] ( x offset, y offset ) \AC{légend }}
824
825 \begin{tabular}{|c|c|}
826 \hline
827 \pslegend[lb]{left bottom}
828 \begin{psgraph}[axesstyle=frame,](0,0)(6,6){6cm}{3cm}
829 \end{psgraph}
830 &
831 \pslegend[lt]{left top}
832 \begin{psgraph}[axesstyle=frame,](0,0)(6,6){6cm}{3cm}
833 \end{psgraph}
834 \\ \hline
835 \BSS{pslegend}[\RDD{lb}]\AC{left bottom} \BSI{pslegend}{pst-plot} \RDI{lb}{pst-plot}& \BSS{pslegend}[\RDD{ lt}]\AC{left top} \RDI{lt}{pst-plot}
836 \\ \hline
837 \pslegend[rb]{right bottom}
838 \begin{psgraph}[axesstyle=frame,](0,0)(6,6){6cm}{3cm}
839 \end{psgraph}
840 &
841 \pslegend[rt]{right top}
842 \begin{psgraph}[axesstyle=frame,](0,0)(6,6){6cm}{3cm}
843 \end{psgraph}
844 \\ \hline
845 \BSS{pslegend}[\RDD{rb}]\AC{right bottom} \RDI{rb}{pst-plot} &
846 \BSS{pslegend}[\RDD{rt}]\AC{right top} {\blue (\dft)} \RDI{rt}{pst-plot}
847 \\ \hline
848 \end{tabular}
849 \bigskip
850
851 \begin{tabular}{|c|c|}
852 \hline
853 \pslegend[lb](20,10){left bottom}
854 \begin{psgraph}[axesstyle=frame](0,0)(6,6){6cm}{3cm}
855 \end{psgraph}
856 &
857 \pslegend[lb](10,20){left bottom}
858 \begin{psgraph}[axesstyle=frame](0,0)(6,6){6cm}{3cm}
859 \end{psgraph}
860 \\ \hline
861 \BS{pslegend}[lb]{\red (20,10)}\AC{left bottom} & \BS{pslegend}[lb]{\red (10,20)}\AC{left bottom}
862 \\ \hline
863 \end{tabular}
864 %------------------------------------------------------------------------------
865
866 \SbSbSSCT{Aspect de la légende}{Legend style}
867
868
869
870 \newpsstyle{legendstyle}{fillstyle=solid,fillcolor=cyan,shadow=true}
871
872 \pslegend[lt]{\red\rule[1ex]{2em}{1pt} & courbe 1\\
873 \blue\rule[1ex]{2em}{1pt} & courbe 2\\
874 \green\rule[1ex]{2em}{1pt} & courbe 3}
875
876 \begin{center}
877 \begin{tabular}{|c|} \hline
878 \begin{psgraph}[axesstyle=frame,](0,0)(12,6){0.6\linewidth}{3cm}
879 \end{psgraph} \\ \hline
880 \BSS{newpsstyle}\AC{\RDD{legendstyle}} \AC{fillstyle=solid,fillcolor=cyan,shadow=true} \\
881 \BS{pslegend}[lt]\AC{\BS{red} \BS{rule}[1ex]\AC{2em} \AC{1pt} \& courbe 1 \BS{}\BS{} \\
882 \BS{blue} \BS{rule}[1ex]\AC{2em}\AC{1pt} \& courbe 2 \BS{}\BS{}\\
883 \BS{green} \BS{rule}[1ex]\AC{2em}\AC{1pt} \& courbe 3
884 } \RDI{legendstyle}{pst-plot} \\ \hline
885 \end{tabular}
886 \end{center}
887
888
889 %-----------------------------------------------------------
890 \SbSSCT{Points particuliers sur les axes}{Point on axes}
891
892 \TFRGB{syntaxe}{syntax} :\\
893 \BSS{psxTick} [Options]\AC{rotation}(x position)\AC{label}
894 \BSI{psxTick}{pst-plot}\\
895 \BSS{psyTick} [Options]\AC{rotation}(y position)\AC{label}
896 \BSI{psyTick}{pst-plot}\\
897 \smallskip
898
899
900 \begin{center}
901 \begin{tabular}{|l|} \hline
902 \psset{llx=-1.5cm,lly=-.5cm,urx=.5cm ,ury=.5cm ,dotscale=2}
903 \begin{psgraph}[axesstyle=frame,](0,0)(6,6){0.8\linewidth}{3cm}
904 \psxTick[linecolor=red,labelsep=-20pt ]{45}(3.25){\red X=3.25}
905 \psyTick[linecolor=magenta](1.5){\magenta Y=1.5}
906 \end{psgraph} \\ \hline
907 \textbf{\BS{}psxTick}[linecolor=red,labelsep=-20pt ]\AC{45}(3.25)\AC{\BS{}red X=3.25}\\
908 \textbf{\BS{}psyTick}[linecolor=magenta](1.5)\AC{\BS{}magenta Y=1.5} \\
909 \hline
910 \end{tabular}
911 \end{center}
912
913 %---------------------------------------------------------
914
915 \SbSSCT{Portion de courbe}{Portion of curve }
916
917
918
919 \psset{llx=-1cm,lly=-.5cm,urx=.5cm ,ury=.5cm ,dotscale=2}
920 \begin{center}
921 \begin{tabular}{|l|} \hline
922 \readdata{\dat}{mesdata.dat}
923 \begin{psgraph}[axesstyle=frame,xticksize=0 4cm,yticksize=0 12cm,subticks=0,Dx=100,Dy=.01](0,0)(750,.12){12cm}{4cm}
924 \listplot[linecolor=black,linewidth=1pt]{\dat}
925 \listplot[xStart=200,xEnd=300,linecolor=blue,linewidth=5pt]{\dat}
926 \listplot[yStart=0,yEnd=.05,linecolor=red,linewidth=5pt]{\dat}
927 \listplot[nStart=200,nEnd=300,linecolor=magenta,linewidth=5pt]{\dat}
928 \end{psgraph}\\ \hline
929 \BS{}listplot[{\red \RDD{xStart}=200,\RDD{xEnd}=300},linecolor=blue,linewidth=5pt]\AC{\BS{}dat}
930 \RDI{xStart}{pst-plot} \RDI{xEnd}{pst-plot} \\
931 \BS{}listplot[{\red \RDD{yStart}=0,\RDD{yEnd}=.05},linecolor=red,linewidth=5pt]\AC{\BS{}dat}
932 \RDI{yStart}{pst-plot} \RDI{yEnd}{pst-plot} \\
933 \BS{}listplot[{\red \RDD{nStar}t=200,\RDD{nEnd}=300},linecolor=magenta,linewidth=5pt]\AC{\BS{}dat}
934 \RDI{nStar}{pst-plot} \RDI{nEnd}{pst-plot} \\
935 \hline
936
937 \end{tabular}
938 \end{center}
939
940 %--------------------------------------------------
941 \SbSSCT{Option yMaxValue et yMinValue}{yMaxValue and yMinValue}
942
943
944 \begin{center}
945 \begin{tabular}{|l|} \hline
946
947 \begin{psgraph}[axesstyle=frame,dx=100](0,0)(0,-1.2)(13,1.2){12cm}{3cm}
948 \psset{algebraic=true}
949 \psplot[plotpoints=2000,linecolor=blue,linestyle=dotted]{0}{12.56}{sin(x)}
950 \psplot[yMaxValue=.7,yMinValue=-.7,plotpoints=2000,linecolor=red,linewidth=5pt]{0}{12.56}{sin(x)}
951 \end{psgraph} \\ \hline
952 \BS{}psplot[{\red \RDD{yMaxValue}=.7,\RDD{yMinValue}=-.7},plotpoints=2000,linecolor=red,linewidth=5pt]\AC{0}\AC{12.56}\AC{sin(x)}
953 \RDI{yMaxValue}{pst-plot} \RDI{yMinValue}{pst-plot}\\
954 \hline
955 \multicolumn{1}{|c|}{ \blue \dft{} yMaxValue= 1.e30 \hspace{1cm} yMinValue = -1.e30 }
956 \\ \hline
957
958 \end{tabular}
959 \end{center}
960
961 %--------------------------------------------------
962 \SbSSCT{\'Echelle trigonométrique}{Axis with trigonmetrical units}
963
964
965 \psset{yunit=0.45cm,xunit=0.45cm}
966
967 \begin{tabular}{|c|c|c|}
968 \hline \begin{pspicture}(-1.5,-1.5)(7,4)
969 \psaxes[trigLabels=true,trigLabelBase=3]{->}(\psPiTwo,3)
970 \end{pspicture}
971 &
972 \begin{pspicture}(-1.5,-1.5)(7,4)
973 \psaxes[xtrigLabels=true,dx=\pstRadUnit]{->}(\psPiTwo,3)
974 \end{pspicture}
975 &
976 \begin{pspicture}(-1.5,-1.5)(7,4)
977 \psaxes[ytrigLabels=true,xunit=\pstRadUnit]{->}(\psPi,3)
978 \end{pspicture} \\
979 \hline
980 \RDD{trigLabels}=true \RDI{trigLabels}{pst-plot} & \RDD{xtrigLabels}=true \RDI{xtrigLabels}{pst-plot} & \RDD{ytrigLabels}=true \RDI{ytrigLabels}{pst-plot} \\
981 \RDD{trigLabelBase}=3 \RDI{trigLabelBase}{pst-plot}
982 & dx=\BSS{pstRadUnit} \BSI{pstRadUnit}{pst-plot}
983 &xunit=\BS{}pstRadUnit \\ \hline
984 \multicolumn{3}{|c|}{ \blue \dft : {\red trigLabelBase} = 0 , {\red trigLabels} = false , {\red xtrigLabels} = false , {\red ytrigLabels} = false}
985 \\ \hline
986 \end{tabular}
987
988 \bigskip
989 \TFRGB{Constantes prédéfinies}{Trigonometrical constants}
990
991
992 \begin{tabular}{|c|c|c|}
993 \hline nom & valeur & math \\
994 \hline \BS{}psPiFour & 12.566371 & $4 \pi$ \\
995 \hline \BS{}psPiTwo & 6.283185 & $2 \pi$ \\
996 \hline \BS{}psPi & 3.14159265 & $ \pi$ \\
997 \hline \BS{}psPiH & 1.570796327 & $\pi/2$ \\
998 \hline \BS{}pstRadUnit & 1.047198cm & $\pi/3$ \\
999 \hline \BS{}pstRadUnitInv & 0.95493cm & $3/\pi$ \\
1000 \hline
1001 \end{tabular}
1002
1003
1004 %==================================================================
1005 \SbSSCT{\'Echelle logarithmique}{Logarithmic axis}
1006 \psset{yunit=.7cm,xunit=.7cm}
1007
1008
1009 \begin{tabular}{|c|c|c|} \hline
1010 \pspicture(-1,-1)(3.5,3.5)
1011 \psaxes[subticks=5,xylogBase=10,logLines=all](3,3)
1012 \endpspicture\hspace{1cm}
1013 &
1014 \pspicture(-1,-1)(3.5,3.5)
1015 \psaxes[subticks=10,axesstyle=frame,ylogBase=2,xlogBase=10,tickstyle=inner](3,3)
1016 \endpspicture
1017 &
1018 \pspicture(-1,-1)(3.5,3.5)
1019 \psaxes[ylogBase={},logLines=y,xticksize=max,xsubticksize=1,tickcolor=red,subtickcolor=blue,tickwidth=1pt,subticks=5,xsubticks =10](3,3)
1020 \endpspicture\\ \hline
1021 \RDD{xylogBase}=10 \RDI{xylogBase}{pst-plot} & \RDD{xlogBase}=10 \RDI{xlogBase}{pst-plot} & \RDD{ylogBase}=\AC{} \RDI{ylogBase}{pst-plot} \\
1022 \RDD{logLines}=all \RDI{logLines}{pst-plot} &
1023 {\red ylogBase}=2 &
1024 {\red logLines}=all\\
1025 subticks=5 & subticks=10, & subticks=5\\
1026 & tickstyle=inner & xsubticks =10\\ \hline
1027 \end{tabular}
1028
1029 %------------------------------
1030 \SbSSCT{Coordonnées de l'environnement psgraph}{Coordinates of psgraph }
1031
1032 \begin{tabular}{|c|}
1033 \hline
1034 \psset{llx=-5mm,lly=-.5cm,urx=.5cm ,ury=.5cm ,dotscale=2}
1035 \begin{psgraph}[axesstyle=none,xticksize=2,yticksize=6](0,0)(6,2){6cm}{2cm}
1036 \psdot[linecolor=red](\psgraphLLx,\psgraphLLy)
1037 \psdot[linecolor=blue](\psgraphLLx,\psgraphURy)
1038 \psdot[linecolor=cyan](\psgraphURx,\psgraphLLy)
1039 \psdot[linecolor=green](\psgraphURx,\psgraphURy)
1040 \end{psgraph}
1041 \\ \hline
1042 \BS{psdot}[linecolor=red](\BS{\BDD{psgraphLLx}},\BS{\BDD{psgraphLLy}}) \BDI{psgraphLLx}{pst-plot} \BDI{psgraphLLy}{pst-plot} \\
1043 \BS{psdot}[linecolor=blue]({\blue \BS{psgraphLLx}},\BS{\BDD{psgraphURy}}) \BDI{psgraphURy}{pst-plot} \\
1044 \BS{psdot}[linecolor=cyan](\BDD{psgraphURx},{\blue \BS{psgraphLLy}}) \BDI{psgraphURx}{pst-plot} \\
1045 \BS{psdot}[linecolor=green]({\blue \BS{psgraphURx},\BS{psgraphURy}}) \\
1046 \hline
1047 \end{tabular}
1048
1049 %\subsection{paramètres d'un graphe en barres }
1050 \SbSSCT{paramètres d'un graphe en barres }{Parameters of a bar graph }
1051
1052 \label{bar}
1053 \begin{tabular}{|c|} \hline
1054 \BS{listplot}[plotstyle=bar,\RDD{barwidth}=1]\AC{\BS{dat}}
1055 \RDI{barwidth}{pst-plot} \\ \hline
1056 \readdata{\dat}{table.dat}
1057 \begin{pspicture}(-1.5,-1.5)(8.5,11)
1058 \psaxes(0,0) (8,10)
1059 \listplot[plotstyle=bar,barwidth=1]{\dat}
1060 \end{pspicture}
1061 \\ \hline
1062 \dft : barwidth = 0.25cm
1063 \\ \hline
1064 \end{tabular}
1065
1066
1067 \begin{tabular}{|c|} \hline
1068 \BS{listplot}[plotstyle=bar,\RDD{interrupt}=\AC{7,1,5}] \RDI{interrupt}{pst-plot}\\
1069 \AC{ 0 5 1 17 2 15 3 20 4 1 5 3 6 22 7 1 8 18 }
1070 \\ \hline
1071 \psset{yunit=.5cm}
1072 \begin{pspicture}(-1.5,-1.5)(10,19)
1073 \psaxes(0,0) (10,18)
1074 \listplot[plotstyle=bar,barwidth=0.3cm,interrupt={7,1,5}]{
1075 0 5 1 17 2 15 3 20 4 1 5 3 6 22 7 1 8 18 }
1076 \end{pspicture}
1077 \\ \hline
1078 \end{tabular}
1079