Interactive drawings

460 views
Skip to first unread message

psaf...@googlemail.com

unread,
Sep 4, 2008, 10:30:28 AM9/4/08
to pygraphviz-discuss
Hi there,

I would like an interactive graph visualization, like the very nice
drawings produced by Jung:

http://jung.sourceforge.net/applet/index.html

Jung allows you to do things like layout a graph with a spring layout
and then drag nodes around as the graph dynamically redraws around
you. I like Jung, but I want a Python tool.

Can pygraphviz do this? Can another Python tool (NetworkX) do this?

If not, I might be prepared to write one as a bolt on for pygraphviz
or NetworkX. I would probably use PyGTK. Does anybody have any further
advice on this?

Peter

Aric Hagberg

unread,
Sep 4, 2008, 1:25:26 PM9/4/08
to pygraphvi...@googlegroups.com


Currently there aren't any interactive drawing tools in NetworkX
or PyGraphviz. But it would be great to have something that
integrated well with them.

One possible approach is to use matplotlib. Matplotlib
provides everything needed to produce good anti-aliased
drawings and can use many different gui backends (wx, gtk, tk).

NetworkX provides a non-interactive interface to matplotlib but it is
possible to build an interactive version as well. I looked into this
a while back and it seemed doable. There are hooks in matplotlib to
select plot elements and move them. I have some code to do this (but
not working the current version of matplotlib) that might be a
starting place.

There have been many impressive improvements in matplotlib since then
(including to the transformations system ) and it would be a good time
to revisit the current interface and redesign an interactive version.

Aric

psaf...@googlemail.com

unread,
Sep 5, 2008, 5:41:07 AM9/5/08
to pygraphviz-discuss

> NetworkX provides a non-interactive interface to matplotlib but it is
> possible to build an interactive version as well.  I looked into this
> a while back and it seemed doable.  There are hooks in matplotlib to
> select plot elements and move them.  I have some code to do this (but
> not working the current version of matplotlib) that might be a
> starting place.
>

That sounds great - could you send this to me? I'll have a crack at
getting it working.

Peter

Raymond Kalonji

unread,
Feb 15, 2013, 9:44:35 PM2/15/13
to pygraphvi...@googlegroups.com
Hello,

I too would like to build Python/Django based interactive network visualization graphs.
@Aric,
Would tell me if you have been able to make the Maplotlib/NetworkX interface work. If not, where are you stuck. I will try my best to help.

Raymond
Disclaimer: I am newbie so I mainly bring courage and a willingness to work on issues.

Tim McNamara

unread,
Feb 16, 2013, 1:13:11 AM2/16/13
to pygraphvi...@googlegroups.com

Would also be very interested in this..

--
You received this message because you are subscribed to the Google Groups "pygraphviz-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pygraphviz-disc...@googlegroups.com.
To post to this group, send email to pygraphvi...@googlegroups.com.
Visit this group at http://groups.google.com/group/pygraphviz-discuss?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply all
Reply to author
Forward
0 new messages