mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-19 11:38:05 +02:00
MAINT: Minor beautification
This commit is contained in:
parent
f89786eab7
commit
da41fb9529
2 changed files with 8 additions and 5 deletions
|
@ -1,6 +1,7 @@
|
||||||
\documentclass[varwidth=false, border=2pt]{beamer}
|
\documentclass[varwidth=false, border=2pt]{beamer}
|
||||||
|
|
||||||
\usepackage{tikz,pgfplots,multido}
|
\usepackage{tikz,pgfplots,multido}
|
||||||
|
\usetikzlibrary{backgrounds}
|
||||||
\pgfplotsset{compat=1.17}
|
\pgfplotsset{compat=1.17}
|
||||||
\usepackage{nicefrac}
|
\usepackage{nicefrac}
|
||||||
\pgfplotsset{every axis legend/.append style={
|
\pgfplotsset{every axis legend/.append style={
|
||||||
|
@ -10,8 +11,8 @@ anchor=north east}}
|
||||||
\usepackage[active,tightpage]{preview}
|
\usepackage[active,tightpage]{preview}
|
||||||
\PreviewEnvironment{tikzpicture}
|
\PreviewEnvironment{tikzpicture}
|
||||||
\begin{document}
|
\begin{document}
|
||||||
\multido{\i=0+1}{10}{%
|
\multido{\i=0+1}{100}{%
|
||||||
\begin{tikzpicture}
|
\begin{tikzpicture}%[background rectangle/.style={fill=white}, show background rectangle]
|
||||||
\begin{axis}[
|
\begin{axis}[
|
||||||
axis x line=middle,
|
axis x line=middle,
|
||||||
axis y line=middle,
|
axis y line=middle,
|
||||||
|
@ -33,7 +34,9 @@ anchor=north east}}
|
||||||
tick align=outside,
|
tick align=outside,
|
||||||
enlargelimits=false]
|
enlargelimits=false]
|
||||||
% plot the function
|
% plot the function
|
||||||
\addplot[domain=-2:{4*\i/10}, red, ultra thick,samples=500] {2^x};
|
\addplot[domain=-2:{-1.5 + (9.5*\i/100)}, red, ultra thick,samples=500] {2^x};
|
||||||
|
\addplot[domain=-2:{-1.5 + (7.5*\i/100)}, blue, ultra thick,samples=500] {3^x};
|
||||||
|
\addplot[domain=-2:{-1.5 + (6.5*\i/100)}, green, ultra thick,samples=500] {4^x};
|
||||||
\end{axis}
|
\end{axis}
|
||||||
\end{tikzpicture}
|
\end{tikzpicture}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,8 +20,8 @@ anchor=north east}}
|
||||||
xmax= 5, % end the diagram at this x-coordinate
|
xmax= 5, % end the diagram at this x-coordinate
|
||||||
ymin=-5, % start the diagram at this y-coordinate
|
ymin=-5, % start the diagram at this y-coordinate
|
||||||
ymax= 5, % end the diagram at this y-coordinate
|
ymax= 5, % end the diagram at this y-coordinate
|
||||||
xlabel=x,
|
xlabel=$x$,
|
||||||
ylabel=y,
|
ylabel=$y$,
|
||||||
legend cell align=left,
|
legend cell align=left,
|
||||||
legend pos=south east,
|
legend pos=south east,
|
||||||
legend style={draw=none},
|
legend style={draw=none},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue