sankey plot

sankey plot /sankey diagram /sankey chart
1.1K Downloads
Updated 17 May 2024

View License

Cite As

Zhaoxu Liu / slandarer (2024). sankey plot (https://www.mathworks.com/matlabcentral/fileexchange/128679-sankey-plot), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2023a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
4.0.0

+ 增添节点及链接(Add node and link)
try : obj.addNode(name,layer)
try : obj.addLink(source,target,value)

3.1.1

add demo image

3.1.0

% # update 3.1.0(2024-05-15)
see sankeyDemo12.m sankeyDemo13.m
+ 为链接添加显示数值的文本(Display value labels for each link)
try :
SK.ValueLabelLocation='left';

3.0.0

# update 3.0.0(2024-04-15)
+ 通过邻接矩阵创建桑基图(Creating a Sankey diagram through adjacency matrix)
+ 每层情况可被设置(Each layer state can be set)
+ 每个节点可在x方向上位移(Each node can be displaced in the x-direction)

2.0.1

+ Draw a chord-type-sankey-plot with chords flowing towards oneself 【see sankeyDemo6_2.m】

2.0.0

# update 2.0.0(2024-02-04)
see natureSankeyDemo1.m

+ 层向右对齐(Align layers to the right)
try : obj.LayerOrder='reverse';

+ 单独调整每层间隙大小(Adjust the Sep size of each layer separately)
try : obj..Sep=[.2,.06,.05,.07,.07,.08,.15];

1.0.0