ricklupton / floweaver

View flow data as Sankey diagrams
https://floweaver.readthedocs.io
MIT License
448 stars 89 forks source link

Docs on how to export images as png/svg #11

Open ricklupton opened 6 years ago

ricklupton commented 6 years ago

We need explicit examples of how to save Sankey diagrams as png/svg for further processing.

There is an example in the quickstart tutorial (cell 8) but it's not obvious.

@coenraadwestbroek does that help? use

weave(sdd, flows).to_widget().auto_save_png('filename.png')

or

weave(sdd, flows).to_widget().auto_save_svg('filename.svg')

The SVG you can open in Inkscape or another editor to tweak the text positions etc.

coenraadwestbroek commented 6 years ago

That works perfectly, thanks rick lupton!