Ticket #6432 (new enhancement)

Opened 14 months ago

Last modified 14 months ago

plot and especially animate are very slow

Reported by: ncalexan Owned by: was
Priority: major Milestone: sage-4.5.3
Component: graphics Keywords: plot speed slow animate
Cc: mhansen Author(s):
Report Upstream: Reviewer(s):
Merged in: Work issues:

Description

For anything but the smallest animations, I'm getting very slow times for animate() (of course, most of the time is spent writing individual png files). Is this just the price for python? Can we improve this to be at least usable for the several hundred frame animations I would like to create?

For example:

sage: anim
Animation with 22 frames
sage: %time show(anim)
CPU times: user 6.01 s, sys: 0.14 s, total: 6.15 s
Wall time: 9.68 s

The frames of this animation are just a few lines and points representing paths in the complex plane.

Change History

Changed 14 months ago by ncalexan

  • type changed from defect to enhancement

Changed 14 months ago by mhampton

This seems to overlap a lot with #1483:

 http://trac.sagemath.org/sage_trac/ticket/1483

The gifs that convert produces just aren't a very good solution once things are scaled up beyond small simple animations. Using javascript instead seems like the best solution, but for very high quality exportable movies I don't see an alternative to an optional ffmpeg package.

Note: See TracTickets for help on using tickets.