我想旋转我的身材,如下所示:
\documentclass{standalone}
\usepackage{tikz}
\usepackage{tikz-3dplot}
\begin{document}
\tdplotsetmaincoords{180}{0}
\begin{tikzpicture}[thick,scale=3,tdplot_main_coords]
\draw[thick,->] (4,0,0) -- (5,0,0) node[anchor=north east]{$x$};
\draw[thick,->] (4,0,0) -- (4,1,0) node[anchor=north west]{$y$};
\draw[thick,->] (4,0,0) -- (4,0,1) node[anchor=south]{$z$};
\end{tikzpicture}
\end{document}
我该怎么做才能旋转 z 坐标?
答案1
这个怎么样:
代码
\documentclass[tikz,border=2mm]{standalone}
\begin{document}
\begin{tikzpicture}
[ thick,
scale=3,
x={(0:1cm)},
y={(270:1cm)},
z={(315:1cm)}
]
\draw[thick,->] (4,0,0) -- (5,0,0) node[right]{$x$};
\draw[thick,->] (4,0,0) -- (4,1,0) node[below]{$y$};
\draw[thick,->] (4,0,0) -- (4,0,1) node[below right]{$z$};
\end{tikzpicture}
\end{document}