[Tex/LaTex] TikZ: How to rotate and then shift

positioningrotatingtikz-pgf

I'm trying to rotate a node and then shift it along the X axis. If I do [rotate=90, xshift=-20pt], the node will first shift and then rotate.

Best Answer

You could nest the rotated object inside a shifted scope, i.e.

\begin{scope}[xshift=-20pt]
    \draw [rotate=90] ...;
\end{scope}