2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-26 06:48:04 +02:00

Digitalisieren der Vorlesung von 04.02.2014

This commit is contained in:
Martin Thoma 2014-02-04 11:36:59 +01:00
parent 63d7e27d76
commit aa2454bb30
21 changed files with 432 additions and 3 deletions

View file

@ -0,0 +1,33 @@
\pgfplotsset{
colormap={whitered}{
color(0cm)=(white);
color(1cm)=(orange!75!red)
}
}
\begin{tikzpicture}
\begin{axis}[
colormap name=whitered,
width=15cm,
view={340}{25},
enlargelimits=false,
grid=major,
domain=0:5,
y domain=0:2*pi,
xmin=-1.5, xmax=1.5,
ymin=-1.5, ymax=1.5, zmin=0.0,
samples=30, %57 : TeX capacity exceeded, sorry [main memory size=3000000].
% see also http://tex.stackexchange.com/a/7954/5645
xlabel=$x$,
ylabel=$y$,
zlabel={$z$},
%colorbar,
colorbar style={
at={(-0.1,0)},
anchor=south west,
height=0.25*\pgfkeysvalueof{/pgfplots/parent axis height},
title={$f(x,y)$}
}
]
\addplot3 [surf,z buffer=sort] ({cos(deg(y))},{sin(deg(y))},{x});
\end{axis}
\end{tikzpicture}

View file

@ -0,0 +1,31 @@
\pgfplotsset{
colormap={whitered}{
color(0cm)=(white);
color(1cm)=(orange!75!red)
}
}
\begin{tikzpicture}
\begin{axis}[
colormap name=whitered,
width=15cm,
view={340}{25},
enlargelimits=false,
grid=major,
domain=-2:2,
y domain=-2:2,
samples=40, %57 : TeX capacity exceeded, sorry [main memory size=3000000].
% see also http://tex.stackexchange.com/a/7954/5645
xlabel=$x$,
ylabel=$y$,
zlabel={$z$},
colorbar,
colorbar style={
at={(-0.1,0)},
anchor=south west,
height=0.25*\pgfkeysvalueof{/pgfplots/parent axis height},
title={$f(x,y)$}
}
]
\addplot3[surf,draw=black] {x^2-y^2};
\end{axis}
\end{tikzpicture}