[/tikz/turn] key works nice with a plot, but not not when it is in a scope where [rotate], [shift] or other transform is applyed. Here is an example :
\begin{tikzpicture} \draw[red] (0,0) -- (1,1) -- ([turn]1,0); \draw[blue, domain=0:.5] plot (\x,\x*\x) -- ([turn]1,0); \begin{scope}[rotate=45] \draw[red] (0,0) -- (1,1) -- ([turn]1,0); \draw[blue, domain=0:.5] plot (\x,\x*\x) -- ([turn]1,0); \end{scope} \end{tikzpicture}
The
\draw[red] (0,0) -- (1,1) -- ([turn]1,0);
works nice, but
\draw[blue, domain=0:.5] plot (\x,\x*\x) -- ([turn]1,0);
fails in a strange way when rotated.