Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

saving animation problem

sines = [plot(c*sin(x), (-2*pi,2*pi), color=Color(c,0,0), ymin=-1, ymax=1) for c in srange(0,1,.1)]
a = animate(sines)
a.save('animations/sines')

When running this code I get the following error:

Error: Cannot generate GIF animation. The convert command (ImageMagick) is present but does not seem to be functional. Verify that the objects passed to the animate command can be saved in PNG image format. See www.imagemagick.org more information.

I can find the .gif in .sage/tmp/mymachine/44754 and move it, but using the save command would be much easier. I am on Sagemath 9.5 and Ubuntu 22.04

saving animation problem

sines = [plot(c*sin(x), (-2*pi,2*pi), color=Color(c,0,0), ymin=-1, ymax=1) for c in srange(0,1,.1)]
a = animate(sines)
a.save('animations/sines')

When running this code I get the following error:

Error: Cannot generate GIF animation. The convert command (ImageMagick) is present but does not seem to be functional. Verify that the objects passed to the animate command can be saved in PNG image format. See www.imagemagick.org more information.

I can find the .gif in .sage/tmp/mymachine/44754 and move it, but using the save command would be much easier. I am on Sagemath 9.5 and Ubuntu 22.04

saving animation problem

sines = [plot(c*sin(x), (-2*pi,2*pi), color=Color(c,0,0), ymin=-1, ymax=1) for c in srange(0,1,.1)]
a = animate(sines)
a.save('animations/sines')

When running this code I get the following error:

Error: Cannot generate GIF animation. The convert command (ImageMagick) is present but does not seem to be functional. Verify that the objects passed to the animate command can be saved in PNG image format. See www.imagemagick.org more information.

I can find the .gif in .sage/tmp/mymachine/44754 and move it, but using the save command would be much easier. I am on Sagemath 9.5 and Ubuntu 22.04