The code is created largely based on the alluvial diagram (https://nl.mathworks.com/matlabcentral/fileexchange/66746-alluvial-flow-diagram). It improves the alluvial diagram in two respects:
1. It can plot a Sankey diagram with multiple blocks
2. For each block, the left and right ends do not have to be balanced.
Text labels have to be added separately.
Cite As
Ranran Wang (2024). Sankey Diagram (https://www.mathworks.com/matlabcentral/fileexchange/75813-sankey-diagram), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxTags
Acknowledgements
Inspired: Sankey Plot / Alluvial Flow Diagram, Sankey flow chart
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Sankey
Version | Published | Release Notes | |
---|---|---|---|
1.0.0 |