Menu

midway in pgf-2.1

2011-03-02
2013-05-29
  • Bob Tennent

    Bob Tennent - 2011-03-02

    node doesn't work for curved paths in pgf-2.1.  The node is aways at the starting point. Does  anyone know why or have a workaround?

     
  • Leo Liu

    Leo Liu - 2011-03-03

    I also met this problem. And I solved it by replacing "edge" to "to" in "\draw" command.

     
  • Bob Tennent

    Bob Tennent - 2011-03-03

    > replacing "edge" to "to" in "\draw" command.

    I don't understand that.  Here's a minimal example showing the difference between straight and curved edges:

    \begin{tikzpicture}
    \draw (0,1) - (1,2) node {$\bullet$} ;
    \draw (0,0) to (1,1) node {$\bullet$} ;
    \end{tikzpicture}