A PyQT script for automatically generating and displaying a graph produced with GraphViz dot tool.
This script displays the result of a GraphViz graph with live update capability: each time you save your GraphViz file, this one will be automatically update. So you can see in real time, the effect of your modification on your GraphViz file.
An OS with Python3, PyQT5, and GraphViz installed.
Copy dot.py and dot.ini to your disk.
Before using the tool, one needs to configure dotd.ini
in order to define:
- The Path to the GraphViz DOT program (Section
[DOT]
, parameterEXE
) - The format of the image that will be produced by DOT defined by image file extension format (
png
by default, other formats were not tested) (Section[DOT]
, parameterFORMAT
) - The refresh time for updating the view in milliseconds (Section
[DAEMON]
, parameterSLEEP
)
Type this command line: dotd.py [Name of the GraphViz file]
You can test the script with the example provided in this repository dotd.py test_cluster.gv
and you will get the example window above.
On some Windows configuration, the python file association doesn't pass the command line arguments to the python interpreter. If you meet this issue, refer to http://stackoverflow.com/questions/2640971/windows-is-not-passing-command-line-arguments-to-python-programs-executed-from-t