I'm trying to develop an application for interactive graph layout using networkx and matplotlib. My idea is to use the usual spring layout, where nodes repel each other and edges act as attractive forces between nodes, but have the layout happen in real time on the screen. The user can also interact with the layout by dragging the nodes and the graph will respond again in real time.
I've worked my way through the interactive and animation examples for matplotlib, which seem fine but I can't figure out how to combine them. What I'd like to get me started is to attach an event listener to the plot in anim.py so I can start and stop it with a mouse or key event. Can anybody point me in the right direction? Thanks, Peter ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users