Relative positioning of nodes

View: New views
3 Messages — Rating Filter:   Alert me  

Relative positioning of nodes

by Paulo J. Matos :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

Re: Relative positioning of nodes

by Zerothi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

Re: Relative positioning of nodes

by Paulo J. Matos :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, 2009-10-24 at 16:34 +0200, Nick Papior Andersen wrote:

> 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);
>

Thank you very much. Through careful inspection of the manual I just
found it referenced in page 157.

>
> 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