Overlay example

1 view
Skip to first unread message

vjktm

unread,
Nov 19, 2009, 10:21:42 PM11/19/09
to guess-discuss
Hi,
One of the screenshots is an example of a network overlayed on the map
of the USA. How do you get this in GUESS. I tried by importing nodes
with longitude and latitude as x, y but what layout model should I
use? Is there and "absolute" layout that just uses the node x, y
values as-is? How do you create the background map?

Eytan Adar

unread,
Nov 23, 2009, 1:25:31 PM11/23/09
to guess-...@googlegroups.com
Check out the end of this:
http://guess.wikispot.org/Responding_to_clicks_and_other_code_bits.

basically the image gets placed at whatever size you have it (so if
it's 1024x768 it'll be at 0,0 with a width of 1024 and height of 768).
It's up to you to rescale your coordinates to fit the image.

There's dockexample5.py which takes care of scaling for you by asking
you where you want to place two points (you click on the image) and
then it rescales everything. At the very least, you can use this code
as a starting point.

good luck,

-E
> --
>
> You received this message because you are subscribed to the Google Groups "guess-discuss" group.
> To post to this group, send email to guess-...@googlegroups.com.
> To unsubscribe from this group, send email to guess-discus...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/guess-discuss?hl=.
>
>
>

vjktm

unread,
Nov 24, 2009, 8:25:40 PM11/24/09
to guess-discuss
E,
thank you! I will read those examples.

Thank you for creating this package. I am planning to use it in my
own network analysis tools to interact with the network visulization.
vjktm

On Nov 23, 1:25 pm, Eytan Adar <eytana...@gmail.com> wrote:
> Check out the end of this:http://guess.wikispot.org/Responding_to_clicks_and_other_code_bits.
>
> basically the image gets placed at whatever size you have it (so if
> it's 1024x768 it'll be at 0,0 with a width of 1024 and height of 768).
>  It's up to you to rescale your coordinates to fit the image.
>
> There's dockexample5.py which takes care of scaling for you by asking
> you where you want to place two points (you click on the image) and
> then it rescales everything.  At the very least, you can use this code
> as a starting point.
>
> good luck,
>
> -E
>
Reply all
Reply to author
Forward
0 new messages