答案1
\tdplotsetrotatedcoords{0}{20}{0}
您可以根据需要调整旋转角度。
\documentclass[tikz,border=3.14pt]{standalone}
\usepackage{tikz-3dplot}
\begin{document}
\tdplotsetmaincoords{70}{30}
\begin{tikzpicture}[tdplot_main_coords]
\tdplotsetrotatedcoords{0}{20}{0}
\begin{scope}[tdplot_rotated_coords]
\coordinate (O) at (0,0,0);
\foreach \Z in {1,2,3,4}
{
\draw[fill=blue] (-3,-3,\Z) -- (-3,3,\Z) -- (3,3,\Z) -- (3,-3,\Z) -- cycle;
}
\draw[thick,-latex] (0,0,4) -- (0,0,7);
\end{scope}
\end{tikzpicture}
\end{document}