matplotlib-cpp
matplotlib-cpp copied to clipboard
How to save the animation to a local file?
How to save the drawn animation to a local file? For example, I want to save it as example.gif.
Workaround:
- install imagemagick
- save each step of the animation as png in a folder (plots/1.png plots/2.png ....)
- stitch all the pngs together
convert-delay 10 -loop 0 plots/*.png animation.gif
- good luck!
Thank you for your answer. I have exported the data and implemented dynamic drawing with python, but I will try to implement the solution you gave.