-
Notifications
You must be signed in to change notification settings - Fork 9
Description
As you know, the Connection class contains "dot" representations of the connectivity between populations, and that's what introduced the dependency on pydot package. The "dot" representation has been chosen for its compact, easy to read representation, which can be also easily converted into any other more complex representation. On the other hand, until now it has only been possible to dump this representation into a file and then call the 'dot' program from bash to generate a png of the connectivity graph. No interactive GUI for mappings and plots has ever been possible with this approach.
I just found a package that could enhance user experience by providing graphical visualization of the mappings. It turns out that the tools have always been there in the same graphviz package from where pydot was taken in first place... I think xdot package could be the solution.
http://code.google.com/p/jrfonseca/wiki/XDot#Features
Pros of xdot:
- Since it doesn't use bitmaps it is fast and has a small memory footprint.
- Arbitrary zoom.
- Keyboard/mouse navigation.
- Supports events on the nodes with URLs.
- Animated jumping between nodes.
- Highlights node/edge under mouse.
- It (seems to) only require pyGTK.
- Can be used both as a standalone python program and as an embedded part of pyNCS.
Other projects:
- http://zvtm.sourceforge.net/zgrviewer.html
- http://morepypy.blogspot.ch/2008/01/visualizing-python-tokenizer.html
Both the above alternatives seem much bigger projects. The latter uses pygame but given the simplicity of the dot representation I would stick with the slickest solution, i.e. xdot.
What do you think?
Fabio