Menu

#342 [turn] after plot in transformed scope fails

v1.0 (example)
open
nobody
None
5
2014-12-03
2014-12-03
Kpym
No

[/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.

1 Attachments

Discussion