SankeyPlots.jl icon indicating copy to clipboard operation
SankeyPlots.jl copied to clipboard

Equal-width Sankey plots

Open briochemc opened this issue 3 years ago • 2 comments

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:

  1. draw the "middle" path connecting the middles of source and target
  2. 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!

briochemc avatar Apr 13 '22 13:04 briochemc

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

davide-f avatar Apr 17 '22 22:04 davide-f

Thanks for the hint! That does indeed look nice. It probably would be best to have both options.

daschw avatar Apr 24 '22 21:04 daschw