Debian Codegraph @

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

raw
1
2 \TFRGB{
3 Syntaxe :
4 \BS{psChart}[options]\AC{liste de valeurs }\AC{liste des valeurs décalées }\AC{rayon}}
5 {Syntax :
6 \BS{psChart}[options]{value list }{list shifted values }{radius}}
7
8
9
10 \psset{fillstyle=solid,unit=1cm}
11
12 \begin{center}
13 \begin{tabular}{|c|c|} \hline
14 \begin{pspicture}(-2.5,-1.5)(2.5,1.5)
15 \psChart{1,2,3,4,5}{}{1cm}
16 \end{pspicture}
17 &
18 \begin{pspicture}(-2.5,-1.5)(2.5,1.5)
19 \psChart{1,2,3,4,5}{2,5}{1cm}
20 \end{pspicture}
21 \\ \hline
22 \BSS{psChart}\AC{1,2,3,4,5}\AC{}\AC{1cm} \BSI{psChart}{pstricks-add} &
23 \textbf{\BS{}psChart}\AC{1,2,3,4,5}{\red \AC{2,5}}\AC{1cm}
24 \\ \hline
25 \end{tabular}
26 \end{center}
27
28 % \subsubsection{Paramètres}
29 \begin{center}
30 \begin{tabular}{|c|c|c|} \hline
31 \begin{pspicture}(-2,-1.5)(2,1.5)
32 \psChart[chartColor=color]{1,1,1,1,1,1,1,1,1,1,1 }{1}{1cm}
33 \end{pspicture}
34 &
35 \begin{pspicture}(-2.5,-1.5)(2.5,1.5)
36 \psChart[userColor={orange,teal,red!20}]{1,2,3}{1}{1cm}
37 \end{pspicture}
38 &
39 \begin{pspicture}(-2,-1.5)(2,1.5)
40 \psChart[chartColor=color,shadow=true]{1,2,3}{1}{1cm}
41 \end{pspicture}
42
43 \\ \hline
44 \RDD{chartColor}=color \RDI{chartColor}{pstricks-add} & \RDD{userColor}=\AC{orange,teal,red!20} \RDI{userColor}{pstricks-add} &
45 \RDD{shadow}=true \RDI{shadow}{pstricks-add}
46 \\ \hline
47 \end{tabular}
48 \end{center}
49
50 \begin{center}
51 \begin{tabular}{|c|c|c|} \hline
52 \begin{pspicture}(-2,-2)(2,2)
53 \psChart[chartColor=color,chartSep=5pt]{1,2,3}{1}{1cm}
54 \end{pspicture}
55 &
56 \begin{pspicture}(-2,-2)(2,2)
57 \psChart[chartColor=color,chartSep=5pt]{1,2,3}{1,2}{1cm}
58 \end{pspicture}
59 &
60 \begin{pspicture}(-2,-2)(2,2)
61 \psChart[chartColor=color,chartSep=5pt]{1,2,3}{1,2,3}{1cm}
62 \end{pspicture}
63 \\ \hline
64 \multicolumn{3}{|c|}{\RDD{chartSep}=5pt par défaut : 10pt \RDI{chartSep}{pstricks-add} } \\ \hline
65 %chartColor=color & userColor={blue,green,red,cyan,orange}
66 %\\ \hline
67 %{\red chartSep}=.5cm &
68 %\\ \hline
69 \end{tabular}
70 \end{center}
71 %------------------------------------------------------------------
72 \SbSSCT{Etiquettes}{Labels}
73 \begin{center}
74 \begin{tabular}{|c|c|c|} \hline
75 \multicolumn{3}{|c|}{\TFRGB{3 positions possibles}{Three possible positions}} \\ \hline
76 \begin{pspicture}(-2,-1.5)(2,1.5)
77 \psChart[chartColor=color]{1,2}{}{1cm}
78 \psdots[dotstyle=*,dotscale=2,linecolor=green](psChartO1)
79 \psdots[dotstyle=*,dotscale=2,linecolor=green](psChartO2)
80 \end{pspicture}
81 &
82 \begin{pspicture}(-2,-1.5)(2,1.5)
83 \psChart[chartColor=color]{1,2}{}{1cm}
84 \psdots[dotstyle=*,dotscale=2,linecolor=green](psChartI1)
85 \psdots[dotstyle=*,dotscale=2,linecolor=green](psChartI2)
86 \end{pspicture}
87 &
88 \begin{pspicture}(-2,-1.5)(2,1.5)
89 \psChart[chartColor=color]{1,2}{}{1cm}
90 \psdots[dotstyle=*,dotscale=2,linecolor=green](psChart1)
91 \psdots[dotstyle=*,dotscale=2,linecolor=green](psChart2)
92 \end{pspicture}
93 \\ \hline
94 \BS{}psdots(\BDD{psChartO1}) & \BS{}psdots(\BDD{psChartI1}) & \BS{}psdots(\BDD{psChart1}) \\
95 \BS{}psdots(\BDD{psChartO2}) & \BS{}psdots(\BDD{psChartI2}) & \BS{}psdots(\BDD{psChart2}) \\ \hline
96 \end{tabular}
97 \end{center}
98
99
100
101 %---------------------------------------------------------
102
103 \begin{center}
104 \begin{tabular}{|c|c|} \hline
105 \multicolumn{2}{|c|}{\TFRGB{Liaison des points}{Connection of the points}} \\ \hline
106 \begin{pspicture}(-2,-2)(2,2)
107 \psChart[chartColor=color,chartNodeO=2]{1,2}{}{1cm}
108 \pcline[linecolor=green](psChartO1)(psChartI1)
109 \pcline[linecolor=green](psChartO2)(psChart2)
110 \end{pspicture}
111 &
112 \begin{pspicture}(-3,-1.5)(3,1.5)
113 \psChart[chartColor=color,chartNodeI=.5]{1,2}{}{1cm}
114 \ncline[linecolor=green]{psChartO1}{psChartI1}
115 \ncline[linecolor=green]{psChartO2}{psChart2}
116 \end{pspicture}
117 \\ \hline
118 \BS{}pcline(psChartO1)(psChartI1)
119 &
120 \BS{}ncline\AC{psChartO1}\AC{psChartI1}
121 \\
122 \BS{}pcline(psChartO2)(psChart2)
123 &
124 \BS{}ncline\AC{psChartO2}\AC{psChart2} \\
125 \hline
126 \end{tabular}
127 \end{center}
128
129 %----------------------------------------------------------
130 \begin{center}
131 \begin{tabular}{|c|c|} \hline
132 \multicolumn{2}{|c|}{\TFRGB{Attachement des étiquettes aux points}{labels attachment points}} \\ \hline
133 \begin{pspicture}(-3,-2.5)(3,2.5)
134 \psChart[chartColor=color]{1,2}{}{1cm}
135 \rput*[l](psChartO1){psChartO1}
136 \rput*[l](psChartO2){O2}
137 \end{pspicture}
138 &
139 \begin{pspicture}(-3,-2.5)(3,2.5)
140 \psChart[chartColor=color]{1,2}{}{1cm}
141 \rput*[l](psChartI1){psChartI1}
142 \rput*[l](psChartI2){I2}
143 \end{pspicture}
144 \\ \hline
145 \BS{}rput*[l](\BDD{psChartO1)}\AC{psChartO1} &
146 \BS{}rput*[l](\BDD{psChartI1})\AC{psChartI1}
147 \\
148 \BS{}rput*[l](\BDD{psChartO2})\AC{O2} &
149 \BS{}rput*[l](\BDD{psChartI2})\AC{I2}
150 \\
151 \hline
152 \end{tabular}
153 \end{center}
154 \newpage
155 \begin{center}
156 \begin{tabular}{|c|c|} \hline
157 \begin{pspicture}(-2,-2.5)(2,2.5)
158 \psChart[chartColor=color,chartNodeO=2]{1,2}{}{1cm}
159 \psdots[dotstyle=*,dotscale=2,linecolor=green](psChartO1)
160 \psdots[dotstyle=*,dotscale=2,linecolor=green](psChartO2)
161 \end{pspicture}
162 &
163 \begin{pspicture}(-2,-2.5)(2,2.5)
164 \psChart[chartColor=color,chartNodeI=.5]{1,2}{}{1cm}
165 \psdots[dotstyle=*,dotscale=2,linecolor=green](psChartI1)
166 \psdots[dotstyle=*,dotscale=2,linecolor=green](psChartI2)
167 \end{pspicture}
168 \\ \hline
169 \RDD{chartNodeO}=2 \RDI{chartNodeO}{pstricks-add} & \RDD{chartNodeI}=.5 \RDI{chartNodeI}{pstricks-add}\\
170 par défaut : 1.5 & par défaut : .75 \\
171 \hline
172 \end{tabular}
173 \end{center}
174 %--------------------------------------------------------
175 \begin{center}
176 \begin{tabular}{|c|c|c|c|c|c|c|c|c|c|} \hline
177 \multicolumn{10}{|c|}{\TFRGB{Couleurs de remplissage}{Filling color }}\\
178 \multicolumn{10}{|c|}{\BS{}psframe[fillcolor=\BDD{chartFillColor1}(1,1) à \BS{}psframe[fillcolor=\BDD{chartFillColor10}(1,1)}\\ \hline
179 \begin{pspicture}(1,1.2)
180 \psframe[fillcolor=chartFillColor1](1,1)
181 \end{pspicture}
182 &
183 \begin{pspicture}(1,1.2)
184 \psframe[fillcolor=chartFillColor2](1,1)
185 \end{pspicture}
186 &
187 \begin{pspicture}(1,1.2)
188 \psframe[fillcolor=chartFillColor3](1,1)
189 \end{pspicture}
190 &
191 \begin{pspicture}(1,1.2)
192 \psframe[fillcolor=chartFillColor4](1,1)
193 \end{pspicture}
194 &
195 \begin{pspicture}(1,1.2)
196 \psframe[fillcolor=chartFillColor5](1,1)
197 \end{pspicture}
198 &
199 \begin{pspicture}(1,1.2)
200 \psframe[fillcolor=chartFillColor6](1,1)
201 \end{pspicture}
202 &
203 \begin{pspicture}(1,1.2)
204 \psframe[fillcolor=chartFillColor7](1,1)
205 \end{pspicture}
206 &
207 \begin{pspicture}(1,1.2)
208 \psframe[fillcolor=chartFillColor8](1,1)
209 \end{pspicture}
210 &
211 \begin{pspicture}(1,1.2)
212 \psframe[fillcolor=chartFillColor9](1,1)
213 \end{pspicture}
214 &
215 \begin{pspicture}(1,1.2)
216 \psframe[fillcolor=chartFillColor10](1,1)
217 \end{pspicture}
218 \\ \hline
219
220 \end{tabular}
221 \end{center}
222 %------------------------------------------
223
224 \begin{center}
225 \begin{tabular}{|c|c|c|c|c|c|c|c|c|c|} \hline
226 \multicolumn{10}{|c|}{\TFRGB{Couleurs complémentaires}{More colors}}\\
227 \multicolumn{10}{|c|}{\BS{}psframe[fillcolor=\BDD{-chartFillColor1}(1,1) à \BS{}psframe[fillcolor=\BDD{-chartFillColor10}(1,1)}\\ \hline
228 \begin{pspicture}(1,1.2)
229 \psframe[fillcolor=-chartFillColor1](1,1)
230 \end{pspicture}
231 &
232 \begin{pspicture}(1,1.2)
233 \psframe[fillcolor=-chartFillColor2](1,1)
234 \end{pspicture}
235 &
236 \begin{pspicture}(1,1.2)
237 \psframe[fillcolor=-chartFillColor3](1,1)
238 \end{pspicture}
239 &
240 \begin{pspicture}(1,1.2)
241 \psframe[fillcolor=-chartFillColor4](1,1)
242 \end{pspicture}
243 &
244 \begin{pspicture}(1,1.2)
245 \psframe[fillcolor=-chartFillColor5](1,1)
246 \end{pspicture}
247 &
248 \begin{pspicture}(1,1.2)
249 \psframe[fillcolor=-chartFillColor6](1,1)
250 \end{pspicture}
251 &
252 \begin{pspicture}(1,1.2)
253 \psframe[fillcolor=-chartFillColor7](1,1)
254 \end{pspicture}
255 &
256 \begin{pspicture}(1,1.2)
257 \psframe[fillcolor=-chartFillColor8](1,1)
258 \end{pspicture}
259 &
260 \begin{pspicture}(1,1.2)
261 \psframe[fillcolor=-chartFillColor9](1,1)
262 \end{pspicture}
263 &
264 \begin{pspicture}(1,1.2)
265 \psframe[fillcolor=-chartFillColor10](1,1)
266 \end{pspicture}
267 \\ \hline
268
269 \end{tabular}
270 \end{center}
271
272 %\begin{pspicture}(12,1)
273 %\psframe[fillcolor=chartFillColor1](1,1)
274 %\psframe[fillcolor=chartFillColor2](1,0)(2,1)
275 %\psframe[fillcolor=chartFillColor3](2,0)(3,1)
276 %\psframe[fillcolor=chartFillColor4](3,0)(4,1)
277 %\psframe[fillcolor=chartFillColor5](4,0)(5,1)
278 %\psframe[fillcolor=chartFillColor6](5,0)(6,1)
279 %\psframe[fillcolor=chartFillColor7](6,0)(7,1)
280 %\psframe[fillcolor=chartFillColor8](7,0)(8,1)
281 %\psframe[fillcolor=chartFillColor9](8,0)(9,1)
282 %\psframe[fillcolor=chartFillColor10](9,0)(10,1)
283 %
284 %
285 %\end{pspicture}
286
287 %\begin{pspicture}(12,1)
288 %\psframe[fillcolor=-chartFillColor1](1,1)
289 %\psframe[fillcolor=-chartFillColor2](1,0)(2,1)
290 %\psframe[fillcolor=-chartFillColor3](2,0)(3,1)
291 %\psframe[fillcolor=-chartFillColor4](3,0)(4,1)
292 %\psframe[fillcolor=-chartFillColor5](4,0)(5,1)
293 %\psframe[fillcolor=-chartFillColor6](5,0)(6,1)
294 %\psframe[fillcolor=-chartFillColor7](6,0)(7,1)
295 %\psframe[fillcolor=-chartFillColor8](7,0)(8,1)
296 %\psframe[fillcolor=-chartFillColor9](8,0)(9,1)
297 %\psframe[fillcolor=-chartFillColor10](9,0)(10,1)
298 %\end{pspicture}
299 %
300 %\begin{center}
301 %\begin{tabular}{|c|c|} \hline
302 %\begin{pspicture}(-3,-3)(3,3)
303 %\psChart[chartColor=color,chartNodeO=1.2]{1,2,3,4,5 }{3}{2cm}
304 %\rput[l](psChartO1){O1}
305 %\rput[l](psChartO2){\textcolor{chartFillColor2}{O2}}
306 %\rput[l](psChartO3){\textcolor{-chartFillColor3}{O3}}
307 %\rput[l](psChartO4){\textcolor{-chartFillColor4}{O4}}
308 %\rput[l](psChartO5){\textcolor{chartFillColor5}{O5}}
309 %\end{pspicture}
310 %&
311 %\begin{pspicture}(-3,-3)(3,3)
312 %\psChart[chartColor=color,shadow=true,shadowsize=5pt,chartNodeI=.5]{1,2,3,4,5 }{}{2cm}
313 %\rput*[l](psChartI1){I1}
314 %\rput[l](psChartI2){I2}
315 %\rput*[c](psChartI3){I3}
316 %\rput*[c](psChart4){4}
317 %\rput*[l](psChart5){5}
318 %%\psdots[dotstyle=*,dotscale=2](psChartI4)
319 % \end{pspicture}
320 % \\ \hline
321 %\BS{}rput[l]\AC(psChartO1){O1} & \BS{}rput*[l](psChartI1)\AC{I1} \\
322 %\BS{}rput[l](psChartO2){\BS{}textcolor\AC{chartFillColor2}\AC{O2}} &
323 %\BS{}rput[l](psChartI2)\AC{I2} \\
324 %
325 %\hline
326 % \end{tabular}
327 % \end{center}