2013-10-25 01:41:03 +02:00
|
|
|
\begin{tikzpicture}
|
|
|
|
\begin{axis}[
|
2013-10-27 11:16:34 +01:00
|
|
|
legend pos=south east,
|
2013-10-25 01:41:03 +02:00
|
|
|
axis x line=middle,
|
|
|
|
axis y line=middle,
|
|
|
|
%grid = major,
|
|
|
|
width=12cm,
|
|
|
|
height=8cm,
|
|
|
|
%grid style={dashed, gray!30},
|
|
|
|
xmin=-4, % start the diagram at this x-coordinate
|
|
|
|
xmax= 8, % end the diagram at this x-coordinate
|
|
|
|
ymin=-4, % start the diagram at this y-coordinate
|
|
|
|
ymax= 4, % end the diagram at this y-coordinate
|
|
|
|
axis background/.style={fill=white},
|
|
|
|
%xticklabels={-2,-1.6,...,2},
|
|
|
|
%yticklabels={-8,-7,...,8},
|
|
|
|
%tick align=outside,
|
|
|
|
enlargelimits=true,
|
|
|
|
tension=0.08]
|
|
|
|
% plot the stirling-formulae
|
|
|
|
\addplot[domain=-4:8, red, thick,samples=500] {0.5*x};
|
|
|
|
\addplot[domain=-2:2, red, thick,samples=500] {2*x};
|
|
|
|
\addplot[domain=-4:8, red, thick,samples=500] {-0.5*x};
|
|
|
|
\end{axis}
|
|
|
|
\end{tikzpicture}
|