« Return to Thread: Relative positioning of nodes

Re: Relative positioning of nodes

by Zerothi :: Rate this Message:

Reply to Author | View in Thread

Hi Paulo

This is possible... You simply do

\node[fill=gray] (n1) {First node};
\node[fill=gray,anchor=west,right=2cm] (n2) at (n1.east) {Second node};
\draw (n1.east) -- ++(2cm,0);

The last draw is simply so that you can see the length. :D

Regards Nick

2009/10/24 Paulo J. Matos <pocmatos@...>
Hi all,

How can I create a node positioned relative to another node. Say I have
a node n1 and I want to position node n2 exactly 2cm to the right of n1.

Cheers,

Paulo Matos


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
pgf-users mailing list
pgf-users@...
https://lists.sourceforge.net/lists/listinfo/pgf-users


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
pgf-users mailing list
pgf-users@...
https://lists.sourceforge.net/lists/listinfo/pgf-users

 « Return to Thread: Relative positioning of nodes