![]() Then changing nvert_path #nvert_path: 'convert' # Path to ImageMagick's convert binary. The following code will show you the anycodings_gif config file path of Matplotlib import matplotlibįor me the path is C:\Anaconda\lib\site-packages\matplotlib\mpl-data\matplotlibrc Just a reminder, before you use anycodings_gif Matplotlib and ImageMagick to convert anycodings_gif images or videos to gif, you need to anycodings_gif modify Matplotlib's config and add anycodings_gif ImageMagick's path. ![]() Seeing that I succeded to save in mp4 anycodings_animation format, I don't know why it makes error when anycodings_animation saving gif format. ![]() Renderer._renderer.write_rgba(filename_or_obj) _figure(*args, **kwargs)įile "C:\Python27\lib\site-packages\matplotlib\backend_bases.py", line 2220, in print_figureįile "C:\Python27\lib\site-packages\matplotlib\backends\backend_agg.py", line 497, in print_raw Mywriter = animation.FFMpegWriter(fps=60)Īni.save('myanimation.mp4',writer=mywriter)īut if I change myanimation.mp4 to gif anycodings_animation format, python makes error Traceback (most recent call last):įile "C:\Users\Administrator\Desktop\edison\Edison_v4_backup_1\ver5.py", line 164, in Īni.save('demoanimation.gif',writer=mywriter) įile "C:\Python27\lib\site-packages\matplotlib\animation.py", line 718, in saveįile "C:\Python27\lib\site-packages\matplotlib\animation.py", line 204, in grab_frameįile "C:\Python27\lib\site-packages\matplotlib\figure.py", line 1421, in savefig I succeded to save animation to mp4 format, anycodings_animation using code import matplotlibĪni = animation.FuncAnimation(fig, draw, update, interval=10, blit=False) I want to save matplotlib animation in gif anycodings_animation format.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |