Plotly.py: Exporting animations to GIF/PNG/SVG

Created on 16 Jan 2017  路  4Comments  路  Source: plotly/plotly.py

Hello,

The recent animation features are great! However, I was wondering if it is possible to export these animations to e.g. gif format? I had a look through the code and it does not look like this is possible at the moment. Is this something you plan to implement?

Thank you!

Most helpful comment

Yes, that should be build in. :-)

All 4 comments

@EmilienDupont Good question. There's no automated, quick way to do this right now through Plotly. You could write a utility in Python that saves each frame as an image, then stitch those images together using Pillow's gifmaker:
http://stackoverflow.com/questions/24688802/saving-an-animated-gif-in-pillow

I have not tried this myself, but it's the first thing I'd try 馃憤

Thank you @jackparmer, will give it a try

Just to add my 2垄, the solution proposed by @jackparmer would presumably not capture the animated transitions between frames

My workaround is to just use a screen capture/GIF making program (ScreenToGif) to manually create a GIF of the animation

Not the most elegant solution but it'll work for now

Yes, that should be build in. :-)

Was this page helpful?
0 / 5 - 0 ratings