mapio / graphvizanim Goto Github PK
View Code? Open in Web Editor NEWA tool to create animated graph visualizations, based on graphviz.
License: GNU General Public License v3.0
A tool to create animated graph visualizations, based on graphviz.
License: GNU General Public License v3.0
Use shlex.split
to begin with…
I just came across this project. It looks really good. However, there was one thing blocking me from trying it out. I didn't see in the examples how I could animate an existing graph. Is this not possible or was this feature just not showcased?
Following the Numpy, or Google, convention supported by http://www.sphinx-doc.org/en/stable/ext/napoleon.html.
I don't see the heapsort animation code in the examples directory. It would be very helpful.
Under Windows, appears to go into an endless loop of spawning new pythonw processes.
Modify the way highlighting is handled: instead of using a set (to keep track of highlighted nodes/edges), use a dict to map highlighted nodes/edges to their color (and add an optional parameter to the highlight methods).
Add tests and measure coverage… don't be lazy!
Ditto
As suggested in https://news.ycombinator.com/item?id=11015713 one can use SVG and this trick
https://css-tricks.com/svg-line-animation-works/.
Hello guys,
I'm trying to launch the basic example simple.txt
.
However I can't get it working, and I always get the following (or something similar):
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/msoccio/.local/lib/python2.7/site-packages/gvanim/__main__.py", line 36, in <module>
main()
File "/home/msoccio/.local/lib/python2.7/site-packages/gvanim/__main__.py", line 33, in main
render.gif( render.render( ga.graphs(), args.basename, 'png' ), args.basename, args.delay )
AttributeError: 'function' object has no attribute 'gif'
I have tried on
python build
and python install
pip install
All give the same error.
Use something like
convert *png -gravity center -background white -extent 285x320 simple.gif
to fix the issue when node changing in size generate PNGs of different pixel size that result in a cropped GIF (thanks to @carlobellettini for noting this).
Since the label of a node is not set upon creation, RemoveNode fails on del steps[ -1 ].L[ self.v ]
For me, adding steps[ -1 ].L[ self.v ] = self.v
in AddNode essentially fixed the problem, as did changing the RemoveNode-line to if self.v in steps[ -1 ].L: del steps[ -1 ].L[ self.v ]
. The second fix seems cleaner to me.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.