SankeyPlots.jl
SankeyPlots.jl copied to clipboard
Equal-width Sankey plots
I thought it might be a useful to share this resource in case you'd want to implement it. (It makes them sankey plots look nicer IMHO!)
Their "brute force" idea that seems to work well:
- draw the "middle" path connecting the middles of source and target
- then build the band by drawing the curves above and below as if using a pen of fixed length and always perpendicular to the middle path as you travel that said middle path.
An image is worth a thousand words, so here is one of their GIFs that shows the difference quite nicely I think:
Hope this is helpful, Cheers!
Dear @briochemc,
Thank you for the contribution; the approach looks nice, however, I have no time to implement this feature. Feel free to open a PR if you are interested into it. I can give advices in case.
Best, Davide
Thanks for the hint! That does indeed look nice. It probably would be best to have both options.