mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-19 11:38:05 +02:00
17 lines
448 B
TeX
17 lines
448 B
TeX
\pgfplotsset{
|
|
colormap={whitered}{
|
|
color(0cm)=(white);
|
|
color(1cm)=(orange!75!red)
|
|
}
|
|
%colormap={color}{color(0cm)=(white); color(1cm)=(blue)}
|
|
}
|
|
\begin{tikzpicture}
|
|
\begin{axis}[view={60}{30}]
|
|
\addplot3[surf,
|
|
samples=50,
|
|
domain=1:2,y domain=0:2*pi,
|
|
z buffer=sort]
|
|
%({(2 + tan(deg(y)))*cos((deg(x)))}, {(2 + cos(x)) * sin(x)}, {x});
|
|
({x * cos(deg(y))}, {x * sin(deg(y))}, {1/x});
|
|
\end{axis}
|
|
\end{tikzpicture}
|