floweaver icon indicating copy to clipboard operation
floweaver copied to clipboard

Docs on how to export images as png/svg

Open ricklupton opened this issue 7 years ago • 1 comments

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.

ricklupton avatar Mar 01 '18 08:03 ricklupton

That works perfectly, thanks rick lupton!

coenraadwestbroek avatar Mar 02 '18 13:03 coenraadwestbroek