I need to place information below and to the right of a grid. I was not able to rotate the label text of a node. I ended up using \rotatebox, but is there a pure TikZ solution?
\documentclass{scrartcl}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw[step=1cm] (1,1) grid (4,4);
\node[label=below:\rotatebox{-90}{a long text}] at (2.5,1) {};
\node[rotate=-90,label=below:rotate] at (1.5,0.5) {A};
\node[label=right:a long text] at (4,3.5) {};
\end{tikzpicture}
\end{document}



:)– Count Zero May 22 '13 at 15:26xshiftoryshiftfor correcting the label placement instead of fiddeling with thetext depth, especially if you want to use (drawing/filling/referencing) the label later.) Therotatekey rotates around theanchorof the label which is automatically set towestas you useright(oreast) for the label’s direction. Instead of labeling an empty node, one should label a coordinate, an additionallabel distancecan be provided:\path (2.5,1) coordinate [label={[rotate=-90]right:{a long text}}];– Qrrbrbirlbel May 22 '13 at 19:49label={[rotate=-90,anchor=west]below:a long text}, note the change of direction), though in this case, I probably would prefer “real” nodes for their flexibility. – Qrrbrbirlbel May 22 '13 at 19:57labelis workable. Setting the anchor of the label was the missing piece of the puzzle. Thanks for giving it to me!:)– Count Zero May 22 '13 at 22:14