summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tkz/tkz-fct/doc/latex/TKZdoc-fct-fonctions.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/tkz/tkz-fct/doc/latex/TKZdoc-fct-fonctions.tex')
-rw-r--r--macros/latex/contrib/tkz/tkz-fct/doc/latex/TKZdoc-fct-fonctions.tex29
1 files changed, 14 insertions, 15 deletions
diff --git a/macros/latex/contrib/tkz/tkz-fct/doc/latex/TKZdoc-fct-fonctions.tex b/macros/latex/contrib/tkz/tkz-fct/doc/latex/TKZdoc-fct-fonctions.tex
index f65fad9650..7830f4f338 100644
--- a/macros/latex/contrib/tkz/tkz-fct/doc/latex/TKZdoc-fct-fonctions.tex
+++ b/macros/latex/contrib/tkz/tkz-fct/doc/latex/TKZdoc-fct-fonctions.tex
@@ -1,4 +1,3 @@
-%!TEX root = /Users/ego/Boulot/TKZ/tkz-fct/doc-fr/TKZdoc-fct-main.tex
\section{Les différentes macros}
\tkzname{Gnuplot} détermine les points nécessaires pour tracer la courbe. Le nombre de points est fixé par l'option \tkzname{samples}; dans les premiers exemples la valeur du nombre de points est celle donnée par défaut. Ensuite Tikz va utiliser cette table pour tracer la courbe. C'est donc \tkzname{Tikz} qui trace la courbe.
@@ -80,9 +79,9 @@ On demande 400 valeurs pour la table qui va permettre le tracé. Par défaut, la
\begin{tikzpicture}
\tkzInit[xmax= 110,xstep=10,
ymax=6,ystep=1]
-\tkzDrawX[label={\textit{Age}},below= -18pt]
+\tkzDrawX[label={\textit{Âge}},below= -18pt]
\tkzLabelX
-\tkzDrawY[label={\textit{litres}}]
+\tkzDrawY[label={\textit{Litres}}]
\tkzFct[domain = 0.1:100 ]{50/\x}
\end{tikzpicture}
\end{tkzexample}
@@ -105,18 +104,18 @@ Ensuite, j'utilise les macros pour placer des points
\subsection{\tkzname{ystep} et les fonctions constantes}
-Attention, ici \tkzname{ystep=6} or \tkzname{gnuplot} donne $80\div=13$. il faut donc écrire $80.$
+Attention, ici \tkzname{ystep=6} or \tkzname{gnuplot} donne $80\div 6=13$. il faut donc écrire $80.$
-% \begin{tkzexample}[vbox]
-% \begin{tikzpicture}[scale=0.4]
-% \tkzInit[xmax=30,ymax=90,ystep=6]
-% \tkzAxeX[nograd,noticks,poslabel=right,label=$t$]
-% \tkzAxeY[nograd,noticks,poslabel=above,label=$P$]
-% \tkzFct[line width=1pt,color=red,dashed,domain=0:30]{80.0}
-% \tkzFct[line width=1pt,color=blue,domain=0:30]{80/(1.0+4.0*exp(-0.21*x))}
-% \tkzText[above,color=red](20,80){$P=80$}
-% \end{tikzpicture}
-% \end{tkzexample}
+\begin{tkzexample}[vbox]
+ \begin{tikzpicture}[scale=0.4]
+ \tkzInit[xmax=30,ymax=90,ystep=6]
+ \tkzDrawX[right,label=$t$]
+ \tkzDrawY[above,label=$P$]
+ \tkzFct[line width=1pt,color=red,dashed,domain=0:30]{80.0}
+ \tkzFct[line width=1pt,color=blue,domain=0:30]{80/(1.0+4.0*exp(-0.21*x))}
+ \tkzText[above,color=red](20,80){$P=80$}
+\end{tikzpicture}
+\end{tkzexample}
\subsection{Les fonctions affines ou linéaires}
Pour obtenir des droites, on peut utiliser \tkzname{gnuplot} même si l'outil est un peu lourd dans ce cas. Pour alléger les calculs, il est possible de ne demander que deux points !
@@ -159,7 +158,7 @@ Toutes les macros de \tkzname{tkz-base} sont bien sûr utilisables, en voici qu
\begin{center}
\begin{tkzexample}[vbox]
\begin{tikzpicture}[scale=2]
- \tkzInit[xmin=-3,xmax=3, ymin=-1,ymax=3]
+ \tkzInit[xmin=-3,xmax=3, ymin=-1,ymax=4]
\tkzGrid[sub,subxstep=.5,subystep=.5]
\tkzAxeXY
\tkzFct[domain = -3:2]{(2-x)*exp(x)}