header

tkz-base

Les fichiers nécessaires pour compiler les exemples sont ici.

Exemple 1

Base1
[PDF] [TEX]
\documentclass[]{scrartcl}
\usepackage[utf8]{inputenc} 
\usepackage[upright]{fourier}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage{amsmath,tkz-base}
\usepackage[frenchb]{babel}
\definecolor{fondpaille}{cmyk}{0,0,0.1,0}
\pagecolor{fondpaille} 
\tkzSetUpColors[background=fondpaille,text=Maroon]   
\begin{document}

\begin{tikzpicture}
\tkzInit[xmax = 12,
         ymin=1000,ymax = 11000,ystep=1000]
\tkzGrid[color=orange!30]
\tkzAxeX[below right,
         label = mois]  
\tkzAxeY[above left,
         label = Recette]
\tkzDefSetOfPoints{1/2000,2/3000,3/2000,4/2500,5/4200,6/4800,7/4600,8/5200,9/6200,10/7000,11/7400,12/10000} 
\tkzDefSetOfPoints[prefix=P]{1/3200,2/4100,3/3300,4/3300,5/5000,6/5500,7/5200,8/4000,9/3000,10/6000,11/8400,12/9000}  
\tkzSetUpMark[mark=heart,color=black,fill=red!30,size=6pt]
\tkzJoinSetOfPoints[thick,color=Maroon,double]
\tkzDrawSetOfPoints
\tkzJoinSetOfPoints[prefix=P,thick,color=orange,double]
\tkzDrawSetOfPoints[prefix       = P,
                    mark         = square*,
                    mark size    = 5pt,
                    mark options ={color = blue,fill = blue!40}]  
\tkzText[draw,
         color = red,
         fill  = orange!20](6,11000){Recette en fonction du mois}
\end{tikzpicture}
\end{document} 

Exemple 2

Base2
[PDF] [TEX]
\documentclass[]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[upright]{fourier}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage{amsmath,tkz-base}
\usepackage[frenchb]{babel}
\definecolor{fondpaille}{cmyk}{0,0,0.1,0}
\pagecolor{fondpaille} 
\tkzSetUpColors[background=fondpaille,text=Maroon]  

\begin{document}

\begin{tikzpicture}
\tkzInit[xmin=4000,xmax=10000,xstep=500,ymax=2]
\tkzDrawX
\tkzLabelX[label options={below right=1pt,rotate=-45}]
\tkzDefPoint(6000,0){A}   
\tkzDrawPoint[size=10](A)   
\end{tikzpicture}

\end{document}

Exemple 3

Base3
[PDF] [TEX]
\documentclass[]{scrartcl}
\usepackage[utf8]{inputenc} 
\usepackage[upright]{fourier}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage{amsmath,tkz-base}
\definecolor{fondpaille}{cmyk}{0,0,0.1,0}
\pagecolor{fondpaille}
\color{Maroon}
\tkzSetUpColors[background=fondpaille,text=Maroon]   
\thispagestyle{empty}

\begin{document}

\begin{tikzpicture}
  \tikzset{xaxe style/.style ={-}} 
  \tikzset{yaxe style/.style ={-}}  
  \tkzInit[xmax=5,ymax=5]
  \tkzGrid     
  \tkzDrawXY
  \tkzRep[color      = Maroon,
          ynorm      = 4,
          line width = 2pt]
\end{tikzpicture}

\end{document} 

Exemple 4

Base4
[PDF] [TEX]
\documentclass[]{scrartcl} 
\usepackage[utf8]{inputenc} 
\usepackage[upright]{fourier}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage{amsmath,tkz-fct}
\usepackage[frenchb]{babel}   
\definecolor{fondpaille}{cmyk}{0,0,0.1,0}
\tkzSetUpColors[background=fondpaille,text=Maroon] 

\begin{document}
  
\begin{tikzpicture}[scale=2]
 \tkzInit[xmin=0,xmax=4,ymin=-1,ymax=2]
 \tkzAxeY[label=$f(x)$]
 \tkzDefPoint(1,0){a}
 \tkzFct[id=ln,domain=0.15:4,color=blue]{log(x)}
 \tkzArea[top color=red!80,bottom color=gray!20,domain=1:2.718]
 \tkzText[style={draw},color= blue](2,-0.8){$f(x)=\ln(x)$}
 \tkzText[color= red](2.718,-0.2){$\text{e}$}  
 \tkzAxeX
 \tkzDefPoint(2.718,1){b} 
 \tkzDrawPoints(a,b)
 \tkzPointShowCoord(b)
 \tkzText[draw](3.5,0.3){$\displaystyle 
     \mathcal{A}=\int_1^{\text{e}}\ln(x) dx$}
 \tkzText(2,0.2){$\mathcal{A}$}   
\end{tikzpicture}

\end{document}

Exemple 5

Base5
[PDF] [TEX]
\documentclass[]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[upright]{fourier}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage{tkz-base}  
\usepackage[frenchb]{babel}
\definecolor{fondpaille}{cmyk}{0,0,0.1,0}
\pagecolor{fondpaille}
\color{Maroon}
\tkzSetUpColors[background=fondpaille,text=Maroon] 
\begin{document}

\begin{tikzpicture}
\tkzSetUpMark[mark=ball,size=6pt]
\tkzInit[xmax=12,ymin=1000,ymax=11000,ystep=1000]
\tkzClip[space=2]
\tkzX[label=mois,poslabel={below=10pt}]
\tkzY[label=Recette]
\tkzDefSetOfPoints[prefix=PT]{1/2000,4/8000,10/5000,12/7000}
\tkzJoinSetOfPoints[line width=2pt,prefix=PT] 
\tkzDrawSetOfPoints[prefix=PT,ball color=red]   
\tkzText[draw,color = red,fill = red!10,text width=3cm](5,3000)%
{\begin{center}\color{blue}Recette en fonction du mois
 \end{center}}  
\end{tikzpicture}
\end{document}