Ticket #1483 (needs_work enhancement)
[with patch, needs work] animate -- polish the animate command
| Reported by: | was | Owned by: | mhampton |
|---|---|---|---|
| Priority: | major | Milestone: | sage-4.5.3 |
| Component: | graphics | Keywords: | |
| Cc: | Author(s): | ||
| Report Upstream: | Reviewer(s): | ||
| Merged in: | Work issues: |
Description
On Dec 12, 2007 12:22 PM, kcrisman <> wrote:
>
>
>
>
> >
> > > The question:
> > > Is there any way to get SAGE to update a graphic without actually
> > > creating a new graphic, either in command-line mode or in notebook?
> >
> > Would creating an animation be a reasonable substitute?
> > E.g.,
> >
> > {{{id=119|
> > a = random_matrix(GF(37),10)*10
> > b = [a^i for i in [1..37]]
> >
> > }}}
> >
> > {{{id=122|
> > A = animate(matrix_plot(x) for x in b)
> >
> > }}}
> >
> > {{{id=120|
> > show(A)
> >
> > }}}
>
> Oh, yes, this is exactly it - I feel a little silly for not thinking
> of searching for "animate".
>
> Though it is still not at all easy to figure out how to do it. You
> have to think of animate; then you have to figure out that the mystery
> error message about 'convert' means you should find Imagemagick; then
> you have to figure out how to get it and unpack it (luckily I have
> Fink), etc. So another example of a steepish learning curve. Still,
> good to know how to do it. Actually, animate has some very
> interesting methods - I am really looking forward to trying the
> addition of animations!
I totally agree. It would be great if somebody new of a simple
lightweight tool or way to assemble a bunch of png's together
into an animated gif -- I used convert (via imagemagick) since
it was the only thing I could find that works. Regarding
the lack of a good error message that explains what convert
is, how to install it, etc., that is mainly because I wrote the animate
command pretty recently specifically for a high-school workshop I was
running, and didn't have to worry about convert not being
available. animate hasn't got the additional polish it deserves.
> On a different note (and I don't know what people think of this, as
> it's not really SAGE) I noticed two problems, perhaps unique to Mac,
> after the SAGE stuff is resolved. First, if you do it command-line,
That's a good point -- that should be changed.
> Preview opens the animated .gif up automatically and won't play it (it
> lists all the individual frames), and I couldn't even save it there,
> nor drag it into a browser to play it (had to dig into the .sage
> directory in Terminal to do this). Second, when I do it in the
> browser, it just plays forever like any other dorky animated .gif on a
> 1995-vintage website. Is this a bug or a feature?
Animate *is* outputting a dorky animated .gif 1995-vintage style.
The con is that it looks dorky. The pro is that you can save that give
and trivially put it on any web page, etc.
-- William
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

