summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/tkz-base/latex/TKZdoc-base-divers.tex
blob: f6de017439ae2d2bf855e5300e226dd9994f4c36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
\section{Droites parallèles aux axes} 

\subsection{ Tracer une ligne horizontale avec \tkzcname{tkzHLine}}  \hypertarget{thl}{}   
\begin{NewMacroBox}{tkzHLine}{\oarg{local options}\marg{decimal number}}
\tkzHandBomb La syntaxe est celle de \tkzname{xfp}!

\begin{tabular}{lll}
  \toprule
arguments &  exemple  & définition  \\ 
\midrule
\TAline{decimal number}{\tkzcname{tkzHLine\{1\}}}{Trace la droite $y=1$}
\bottomrule
\end{tabular} 

\medskip
\begin{tabular}{lll}  
\toprule
options  & défaut & définition             \\   
\midrule
\TOline{color     }{|black| }{  couleur du trait}
\TOline{line width}{|0.6pt| }{  épaisseur du point}
\TOline{style     }{|solid|}{  style du trait }
\bottomrule
\end{tabular}

{voir les options les lignes dans \TIKZ} 
\end{NewMacroBox}   

\subsubsection{Ligne horizontale }

\begin{tkzexample}[latex=7cm,small] 
\begin{tikzpicture}[scale=2]
   \tkzInit[xmax=3,ymax=1.5]
   \tkzAxeXY
   \tkzHLine[color      = blue,
             style      = dashed,
             line width = 2pt]{1}
\end{tikzpicture}
\end{tkzexample} 

   

\subsubsection{Ligne horizontale et valeur calculée par \tkzname{xfp} }
\begin{tkzexample}[latex=7cm,small]
\begin{tikzpicture}
  \tkzInit[xmin=-3,xmax=3,ymin=-2,ymax=1.5]
  \foreach\v in {-1,1}
  {\tkzHLine[color=red]{\v*pi/2}}
  \tkzDrawY
  \tkzAxeX[trig=2]
  \tkzLabelY
\end{tikzpicture}
\end{tkzexample}

\subsection{Lignes horizontales avec \tkzcname{tkzHLines} }  
\hypertarget{thls}{}  
\begin{NewMacroBox}{tkzHLines}{\oarg{local options}\marg{list of values}}
\tkzHandBomb La syntaxe est celle de \tkzname{xfp} !

\begin{tabular}{lll}
  \toprule
arguments &  exemple  & définition  \\ 
\midrule
\TAline{list of values}{\tkzcname{tkzHLines\{1,4\}}}{Trace les droites $x=1$ et $x=4$}
\bottomrule
\end{tabular} 
\end{NewMacroBox}  

\subsubsection{Lignes horizontales}  


\begin{tkzexample}[latex=7cm,small] 
\begin{tikzpicture}
 	\tkzInit[xmax=5,ymax=4]
 	\tkzAxeXY
	 \tkzHLines[color = magenta]{1,...,3}
\end{tikzpicture} 
\end{tkzexample}


\subsection{ Tracer une ligne verticale avec \tkzcname{tkzVLine}} \hypertarget{tvl}{} 
\begin{NewMacroBox}{tkzVLine}{\oarg{local options}\marg{decimal number}}
\tkzHandBomb La syntaxe est celle de \tkzname{xfp} !
\begin{tabular}{lll}
  \toprule
arguments &  exemple  & définition  \\ 
\midrule
\TAline{decimal number}{\tkzcname{tkzVLine\{1\}}}{Trace la droite $x=1$}
\bottomrule
\end{tabular} 

\medskip
\begin{tabular}{lll}  
\toprule
options  & défaut & définition             \\   
\midrule
\TOline{color     }{|black| }{  couleur du trait}
\TOline{line width}{|0.6pt| }{  épaisseur du point}
\TOline{style     }{|solid|}{  style du trait }
\bottomrule
\end{tabular}

{voir les options les lignes dans \TIKZ} 
\end{NewMacroBox}


\subsubsection{Ligne verticale }

\begin{tkzexample}[latex=8cm,small] 
\begin{tikzpicture}[scale=2]
   \tkzInit[xmax=3,ymax=1]
   \tkzAxeXY
   \tkzVLine[color      = blue,
             style      = dashed,
             line width = 2pt]{1/3}
\end{tikzpicture}
\end{tkzexample}      

\subsubsection{Ligne verticale et valeur calculée par \tkzname{xfp} }
\begin{tkzexample}[latex=8cm,small]
\begin{tikzpicture}
  \tkzInit[xmax=7,ymin=-1,ymax=1]
  \foreach\v in {1,2}
  {\tkzVLine[color=red]{\v*pi}}
  \tkzDrawY
  \tkzAxeX[trig=2]
  \tkzLabelY
\end{tikzpicture}
\end{tkzexample}


\subsection{Lignes verticales avec \tkzcname{tkzVLines} }  
\hypertarget{tvls}{}  
\begin{NewMacroBox}{tkzVLines}{\oarg{local options}\marg{list of values}}
\tkzHandBomb La syntaxe est celle de \tkzname{xfp} !

\begin{tabular}{lll}
  \toprule
arguments &  exemple  & définition  \\ 
\midrule
\TAline{list of values}{\tkzcname{tkzVLines\{1,4\}}}{Trace les droites $x=1$ et $x=4$}
\bottomrule
\end{tabular} 
\end{NewMacroBox}  

\subsubsection{Lignes verticales}  

\begin{tkzexample}[latex=7cm,small]
\begin{tikzpicture}
 \tkzInit[xmax=5,ymax=2]
 \tkzAxeXY
 \tkzVLines[color = green]{1,2,...,4}
\end{tikzpicture}
\end{tkzexample}

\newpage
\section{Ticks sur les axes} 
%<–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––>
\subsection{ Tracer des ticks sur l'axe des abscisses \tkzcname{tkzHTick}} \hypertarget{tht}{} 
\begin{NewMacroBox}{tkzHTick}{\oarg{local options}\marg{decimal number}}


\begin{tabular}{lll}
  \toprule
arguments &  exemple  & définition  \\ 
\midrule
\TAline{decimal number}{\tkzcname{tkzHTick\{1\}}}{l'abscisse du tick est 1}
\bottomrule
\end{tabular} 

\medskip
\begin{tabular}{lll}  
\toprule
options  & défaut & définition             \\   
\midrule
\TOline{mark     }{* }{  disque plein}
\TOline{mark size}{3 pt }{taille du symbole}
\TOline{mark options}{ vide}{permet d'utiliser color par exemple}
\bottomrule
\end{tabular}  

{voir les options de \TIKZ} 
\end{NewMacroBox} 

\subsubsection{exemple} 

\begin{tkzexample}[latex=7cm,small] 
\begin{tikzpicture}
  \tkzInit[xmax=6]
  \tkzDrawX
  \tkzHTick[mark=ball,mark size=3pt]{pi/2} 
  \tkzHTick[mark=*,
     mark options={color=purple}]{2*exp(1)}
\end{tikzpicture}    
\end{tkzexample}

\subsection{ Tracer des ticks sur l'axe des ordonnées \tkzcname{tkzHTicks}} \hypertarget{thts}{} 
\begin{NewMacroBox}{tkzHTicks}{\oarg{local options}\marg{list of numbers}}

\begin{tabular}{lll}
  \toprule
arguments &  exemple  & définition  \\ 
\midrule
\TAline{decimal number}{\tkzcname{tkzHTicks\{1\}}}{l'abscisse du tick est 1}
\bottomrule
\end{tabular} 

{voir les options de \TIKZ.}  
\end{NewMacroBox} 

\subsection{ Tracer des ticks sur l'axe des abscisses \tkzcname{tkzVTick}} \hypertarget{tvt}{} 
\begin{NewMacroBox}{tkzVTick}{\oarg{local options}\marg{decimal number}}

\begin{tabular}{lll}
  \toprule
arguments &  exemple  & définition  \\ 
\midrule
\TAline{decimal number}{\tkzcname{tkzVTick\{1\}}}{l'abscisse du tick est 1}
\bottomrule
\end{tabular} 

{voir les options de \TIKZ.}  

\end{NewMacroBox} 

\subsection{ Tracer des ticks sur l'axe des abscisses \tkzcname{tkzVTicks}} \hypertarget{tvts}{} 
\begin{NewMacroBox}{tkzVTicks}{\oarg{local options}\marg{decimal number}}

\begin{tabular}{lll}
  \toprule
arguments &  exemple  & définition  \\ 
\midrule
\TAline{decimal number}{\tkzcname{tkzVTicks\{1,3\}}}{les ordonnées des ticks sont 1 et 3}
\bottomrule
\end{tabular}

{voir les options de \TIKZ.} 
\end{NewMacroBox} 

 \endinput