
\addplot3
원뿔과 같은 3D로 플로팅하는 모양 그룹이 있고 매크로 인수에 의해 지정된 방향을 가리키도록 해야 합니다. 그래요~ 아니다그냥 정상적으로 플롯하려는 다른 항목을 플롯할 것이므로 보기 각도를 변경하거나 전체 플롯/축을 회전하고 싶습니다. 인수 \addplot3
나 다른 것을 통해 이를 수행하는 쉬운 방법(원뿔 및 기타 모양 회전)이 있습니까? 아니면 방정식에서 이 작업을 수동으로 수행해야 합니까? (뭔가 있을지 의심스럽긴 하지만 방정식을 통해 해보기 전에 한번 시도해 볼까 생각했습니다. =P)
내 MWE의 경우 회전하려는 원뿔은 다음과 같습니다.
\documentclass[12pt]{article}
\usepackage{pgfplots}
\usepackage{tikz}
\usetikzlibrary{3d}
\pgfplotsset{compat=1.12}
\begin{document}
\begin{tikzpicture}[scale=2]
\begin{axis}[axis lines=center, axis on top, samples=30,
xmin=-1.5, xmax=1.5, ymin=-1.5, ymax=1.5, zmin=0.0]
\addplot3 [surf, shader=interp, domain=0:1, y domain=0:2*pi] ({x*cos(deg(y))},{x*sin(deg(y))},{x});
\end{axis}
\end{tikzpicture}
\end{document}