Überarbeitungsverlauf[Zurück]
Klicke auf Einblenden/Ausblenden von Überarbeitungen 2

04 Jun '14, 23:19

Henri's gravatar image

Henri
15.7k133943

Mit `z buffer=sort` sollte es funktionieren. Dafür muss leider y dir=reverse entfernt werden (evtl. ein Bug). \documentclass[margin=2mm,tikz]{standalone} \usepackage{pgfplots} \begin{document} %Oberflächenproblem \begin{tikzpicture}[line width=.7pt] \begin{axis}[axis equal image, clip=false, xlabel=\empty, ylabel=\empty, zlabel=\empty, axis lines=middle, colormap/blackwhite, %y dir=reverse, %axis on top ] % sym. Torus: \addplot3[domain=0:360,y domain=0:360, samples=50, surf,z buffer=sort ] ({15+(10+4*cos(x))*cos(y)} , {15+(10+4*cos(x))*sin(y)}, {4+4*sin(x)}); \end{axis} \end{tikzpicture} \end{document} > ![alt text][1] [1]: http://texwelt.de/wissen/upfiles/u-1.pnghttp://texwelt.de/wissen/upfiles/v_7.png
Klicke auf Einblenden/Ausblenden von Überarbeitungen 1

04 Jun '14, 10:21

Henri's gravatar image

Henri
15.7k133943

Mit `z buffer=sort` sollte es funktionieren. Dafür muss leider y dir=reverse entfernt werden (evtl. ein Bug). \documentclass[margin=2mm,tikz]{standalone} \usepackage{pgfplots} \begin{document} %Oberflächenproblem \begin{tikzpicture}[line width=.7pt] \begin{axis}[axis equal image, clip=false, xlabel=\empty, ylabel=\empty, zlabel=\empty, axis lines=middle, colormap/blackwhite, %y dir=reverse, %axis on top ] % sym. Torus: \addplot3[domain=0:360,y domain=0:360, samples=50, surf,z buffer=sort ] ({15+(10+4*cos(x))*cos(y)} , {15+(10+4*cos(x))*sin(y)}, {4+4*sin(x)}); \end{axis} \end{tikzpicture} \end{document} > ![alt text][1] [1]: http://texwelt.de/wissen/upfiles/u-1.png