summaryrefslogtreecommitdiff
path: root/info/apprends-latex/exemples/tikz.tex
blob: 47912aa2f66bc000cdca0ff1921b2f4e6d111425 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
\begin{tikzpicture}

\draw[->] (0,0) -- (6,0) node[right] {$x$} ;
\draw[->] (0,0) -- (0,5) node[above] {$y$} ;

\filldraw[fill=gray!30]
	(1,0) node[below] {$a$}
	-- (1,2)
	cos (5,4) node[right] {$f(x)$}
	-- (5,0) node[below] {$b$}
	-- cycle ;

\draw (3,1) node {$\displaystyle \int_a^b f(x) \, \mathrm{d}x$} ;

\end{tikzpicture}