I have a series of five image generated from a code that I wish to include one under the other in a figure. I would like to include labels on the left, right and bottom of each of them (left and bottom are identical to each of them).
However I would like the side labels to be rotated by 90°, but it seems that by default the point of rotation is the bottom right of the label on the left and bottom left for the one on the right. I cannot figure out how to rotate the label from its centre.
\PassOptionsToPackage{demo}{graphicx}
\documentclass[tikz]{standalone}
\begin{document}
\begin{tikzpicture}
\node[draw,
label={[rotate=90]west:years $\rightarrow$},
label={south:some other text},
label={[rotate=-90,text=gray]east:OtherLabel}]
{\includegraphics[width=12cm,height=2.4cm]{somefile1}};
\node[draw, yshift=2.5cm,
label={[rotate=90]west:years $\rightarrow$},
label={south:some other text},
label={[rotate=-90,text=gray]east:OtherLabel}]
{\includegraphics[width=12cm,height=2.4cm]{somefile2}};
\end{tikzpicture}
\end{document}


tikzset{every node/.style=...}thing but that didn't work anyway. – ArTourter Dec 22 '12 at 16:25labeloption internally adds an extra node, so in terms of software complexity, it will be the same. The syntax could be a bit more compact usinglabel, but also a bit more obscure, so I don't think that using extra nodes was a bad idea. – JLDiaz Dec 23 '12 at 12:55