Tag: matlab

Sankey Diagrams in Python

I am impressed by the Sankey diagrams produced with ‘sankeypython’, a new open source project. I first came across this in a discussion forum, where Yannick Copin from France presented his work using matprotlib. The project is now at Sourceforge. This sourceforge link not working any more, check Matplotlib project instead (thanks to commenter Johannes for pointing out the broken link), and several Sankey Diagrams in Python samples can be seen there.


The most important functionality is available, such as labels for flows and units. Diagrams have a basic left-to-right orientation, with vertical arrows branching out on both sides. Color changes seem to be realized by combining several systems. There are apparently no node objects where the flows directly hook to (as is common in other tools), but by interlacing differently colored Sankey arrows a process step becomes kind of implicit.

This has only been up on Sourceforge since June 2011, so it will be interesting to follow further development on ‘Sankey Diagrams in Python’. I have added the project to the list of Sankey diagram software.

Matlab routine for simple Sankey diagrams

Just came across a new piece of software for simple Sankey diagrams.
DrawSankey.m is a routine for Matlab that allows to produce diagrams like these:

DrawSankey.m is from the Industrial Energy Systems Laboratory (LENI) at Swiss EPFL in Lausanne. Find more information on their Wiki.

I haven’t tested it myself yet, but this definitely looks like an interesting add-on for Matlab users. I have added drawSankey.m to the Sankey software list.