On Dec 12, 3:38 pm, "William Stein" <[EMAIL PROTECTED]> wrote:
> On Dec 12, 2007 12:22 PM, kcrisman <[EMAIL PROTECTED]> 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.
>
> I've made this all trac #1483:http://trac.sagemath.org/sage_trac/ticket/1483
> I hope somebody works on it.
>
>  -- William

Thanks.  This is where I really wish I had true developer skills so I
could contribute to the code.  Still, it should be enough to convince
my colleague!
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to