
3Dでプロットする図形のグループ\addplot3
(円錐など)があり、マクロ引数で指定された方向に向ける必要があります。ない通常どおりにプロットしたい他のものをプロットするので、ビュー角度を変更したり、プロット/軸全体を回転させたりしたいだけです。引数などを使用して、これを実行する簡単な方法 (円錐やその他の図形を回転させる) はありますか\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}