TMorville TMorville -4 years ago 216
Python Question

iPython Notebook; Plotting transition diagrams

My question is dead simple.

Is there a package to plot state-transition or markov diagrams that look like any of the following? I am thinking it has to exist, but I simply can't find it!

enter image description here
enter image description here

I've really had a search around, also on Stackoverflow, but to no avail.

Answer Source

Right. I found the following packages, installed in the correct order, will produce the graphs I was looking for.

1) Install Graphviz. This is a standalone package, and can be installed with e.g. brew install graphviz.

2) Install PyGraphviz using pip install pygraphviz (requires Graphviz executables)

3) Install PyDot using pip install pydot

If you want to do inline stuff in iPython Notebook, as I do, then check out this

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download