Sankey Diagram

version 1.0.0 (11.8 KB) by Ranran Wang
Creates a Sankey containing mulitple blocks


Updated 22 May 2020

View License

The code is created largely based on the alluvial 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 (2022). Sankey Diagram (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2016b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!