Supports gif animation from matplotlib's animation module. By simulating timer from GUI in the canvas and manually advance timer and grab frame each step. Tested with all example animation scripts from https://github.com/matplotlib/matplotlib/tree/master/examples/animation. Everything works except unchained.py which produces a blank white gif. Also tested few scripts found around the web. Activated by env ITERMPLOT_FRAMES and ITERMPLOT_OUTFILE fall back to original code if env is not specified.
Supports gif animation from matplotlib's animation module. By simulating timer from GUI in the canvas and manually advance timer and grab frame each step. Tested with all example animation scripts from https://github.com/matplotlib/matplotlib/tree/master/examples/animation. Everything works except unchained.py which produces a blank white gif. Also tested few scripts found around the web. Activated by env ITERMPLOT_FRAMES and ITERMPLOT_OUTFILE fall back to original code if env is not specified.