Ich habe eine "manuelle" Lösung gefunden.
Ich verberge die z-Achse mit
und füge die Achse "manuell" als node ein
Code:
\draw [->] (axis cs: 0,0,-2.1) -- (axis cs: 0,0,2) node [above ] {$E_{\mathrm{pot}}$};
Klappt prima, siehe jpg-Bild
Gruß
Manfred
Potentialtopf4 mit z-Achse als node ausgeführt.jpg
Hier noch einmal der ganze Code:
Code:
\begin{tikzpicture}
\clip (2,2) rectangle (16,16);
\begin{axis}[
width=20cm,
height=20cm,
hide z axis,
xtick=\empty,
ytick=\empty,
ztick=\empty,
xlabel={$x$}, ylabel={$y$},
axis lines=center,
axis on top,
xmin=-1.8, xmax=2.3,
ymin=-1.8, ymax=2,
samples=40,
samples y=40,
domain=0.2:1.7,
y domain=0:360,
enlarge z limits={value=0.7,upper},
x label style={at={(ticklabel* cs:1.01)}, anchor=west, }, %Achsenbeschriftung aussen
y label style={at={(ticklabel* cs:1.01)}, anchor=west, }, %Achsenbeschriftung aussen
colormap/blackwhite,
z buffer=sort,
]
\addplot3 [surf] ({x*cos(y)},{x*sin(y)},{-1/x});
% Manuelle z-Achse, die im Trichter verschwindet
\draw [->] (axis cs: 0,0,-2.1) -- (axis cs: 0,0,2) node [above ] {$E_{\mathrm{pot}}$};
%
\end{axis}
\end{tikzpicture}
Lesezeichen