pygom icon indicating copy to clipboard operation
pygom copied to clipboard

Graphing

Open hareball90 opened this issue 6 years ago • 3 comments

Issues around producing the flow diagram from the model.

hareball90 avatar Jan 31 '19 17:01 hareball90

Need to revisit use of graphvis. Graphvis is probably the best way to get these flow diagrams but installation is a bit of a pain on Windows. (Could this be solved with better documentation?)

twomagpi avatar Aug 16 '19 09:08 twomagpi

After installing graphviz and graphviz-python through conda you can do something like

if sys.platform == 'win32':
    os.environ['PATH'] += os.pathsep + os.environ['CONDA_PREFIX'] + r'\Library\bin\graphviz'

on Windows before any imports to make graphviz work. This is not a sufficiently robust solution to be added to the codebase but might form the basis for one?

twomagpi avatar Aug 20 '19 08:08 twomagpi

Obs. you just need to install graphviz through your package manager on Linux and the Python bindings either through pip or the package manager and it "just works".

twomagpi avatar Aug 20 '19 08:08 twomagpi