2023-09-22 17:32:56 +02:00
|
|
|
\documentclass[tikz]{standalone}
|
|
|
|
\usepackage{tikz}
|
|
|
|
|
|
|
|
\begin{document}
|
2023-09-22 23:48:46 +02:00
|
|
|
\usetikzlibrary{3d}
|
|
|
|
% 1D axis
|
|
|
|
\begin{tikzpicture}[->]
|
|
|
|
\begin{scope}[xshift=0]
|
|
|
|
\draw (0, 0, 0) -- (xyz cylindrical cs:radius=1) node[right] {$x$};
|
|
|
|
\end{scope}
|
|
|
|
% 2D coordinate system
|
|
|
|
\begin{scope}[xshift=50]
|
|
|
|
\draw (0, 0, 0) -- (xyz cylindrical cs:radius=1) node[right] {$x$};
|
|
|
|
\draw (0, 0, 0) -- (xyz cylindrical cs:radius=1,angle=90) node[above] {$y$};
|
|
|
|
\end{scope}
|
|
|
|
% 3D coordinate systems
|
|
|
|
\begin{scope}[xshift=100]
|
|
|
|
\draw (0, 0, 0) -- (xyz cylindrical cs:radius=1) node[right] {$x$};
|
|
|
|
\draw (0, 0, 0) -- (xyz cylindrical cs:radius=1,angle=90) node[above] {$y$};
|
|
|
|
\draw (0, 0, 0) -- (xyz cylindrical cs:z=1) node[below left] {$z$};
|
|
|
|
\end{scope}
|
2023-09-22 17:32:56 +02:00
|
|
|
\end{tikzpicture}
|
|
|
|
\end{document}
|