mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-18 19:18:21 +02:00
The commands find . -type f -name '*.md' -exec sed --in-place 's/[[:space:]]\+$//' {} \+ and find . -type f -name '*.tex' -exec sed --in-place 's/[[:space:]]\+$//' {} \+ were used to do so.
32 lines
1.2 KiB
TeX
32 lines
1.2 KiB
TeX
\begin{tikzpicture}
|
|
\begin{axis}[
|
|
legend pos=south east,
|
|
axis x line=middle,
|
|
axis y line=middle,
|
|
grid = major,
|
|
%width=9cm,
|
|
%height=4.5cm,
|
|
grid style={dashed, gray!30},
|
|
xmin= 0, % start the diagram at this x-coordinate
|
|
xmax= 12, % end the diagram at this x-coordinate
|
|
ymin=-10, % start the diagram at this y-coordinate
|
|
ymax= 10, % end the diagram at this y-coordinate
|
|
%axis background/.style={fill=white},
|
|
xlabel=$x$,
|
|
ylabel=$y$,
|
|
%xticklabels={-2,-1.6,...,7},
|
|
tick align=outside,
|
|
%minor tick num=-3,
|
|
enlargelimits=true]
|
|
\addplot[domain=0:12, red, thick,samples=500] {1/3*x^1.5};
|
|
\addplot[domain=0:12, dotted, orange, thick,samples=500] {1*x^1.5};
|
|
\addplot[domain=0:12, dashed, blue, thick,samples=500] {2*x^1.5};
|
|
|
|
\addplot[domain=0:12, red, thick,samples=500] {-1/3*x^1.5};
|
|
\addplot[domain=0:12, dotted, orange, thick,samples=500] {-1*x^1.5};
|
|
\addplot[domain=0:12, dashed, blue, thick,samples=500] {-2*x^1.5};
|
|
\addlegendentry{$a=\frac{1}{3}$}
|
|
\addlegendentry{$a=1$}
|
|
\addlegendentry{$a=2$}
|
|
\end{axis}
|
|
\end{tikzpicture}
|