I have an animated matplotlib chart that I'm trying to save to a .gif file, but I can't get my image writer to work.
I've installed imagemagick and verified that it works on my computer via the instructions given on its installation page, but when I do this:
anim.save('gd.gif', writer='imagemagick')
I get the following error message:
MovieWriter imagemagick unavailable. Trying to use pillow instead.
However, doing anim.save('gd.gif', writer='pillow')
gives the following error message:
ValueError: not enough image data
I tried installing ffmpeg with the command conda install -c conda-forge ffmpeg
. It looked like it installed correctly, but I don't know how to bind it to matplotlib apparently.
Specifying the writer as ffmpeg gives the same error message that I encountered with imagemagick.
I also tried adding imagemagick's path to matplotlib's config file path with the following line:
animation.convert_path: 'C:\Program Files\ImageMagick-7.0.8-Q16\magick.exe'
That was suggested in this question.
None of these seemed to have worked though.
I'm on Windows 10, and am using Python 3.7