Consider this code:
\documentclass{article}
\usepackage{tikz}
\begin{document}
Sloped label with scaling:
\begin{tikzpicture}[yscale=-1]
\draw (0,0) -- (2,2) node[midway,sloped] {Label};
\end{tikzpicture}
Sloped label without scaling:
\begin{tikzpicture}
\draw (0,0) -- (2,2) node[midway,sloped] {Label};
\end{tikzpicture}
\end{document}
This is the output:
So it seems that the sloped option somehow ignores the global coordinate transform matrix. There's nothing particular about yscale=-1; you can try with something else as well. It seems like the slope is computed using the literal node coordinates instead of the actual positions.
So is this a bug or am I doing something wrong? How do I get a properly sloped label?
I'm using the tikz package from MacLive 2017 (how do I check the exact version?).




transform shapeeither to the node options or to the tikzpicture options. – esdd Nov 02 '18 at 14:21