On Thu, Feb 14, 2008 at 3:34 PM, dino <[EMAIL PROTECTED]> wrote:
>
>  I posted this to the sage-newbie list, but it never generated a
>  response.  I understand this list has
>  more people "in the know."
>
>  We have the following snippet:
>
>  arm    = animate([arrow((0,0),(cos(i), sin(i)),
>                              rgbcolor=(1,0,1))
>                              for i in srange(0, 2*pi, 0.3)])
>  arm.show()
>
>  It generates a rotating arrow.  I wish to generate an animated line,
>  but the obvious substitution fails, generating a graph but no line.

This works for me:

sage: arm    = animate([line([(0,0),(cos(i),
sin(i))],rgbcolor=(1,0,1)) for i in srange(0, 2*pi, 0.3)])
sage: arm.show()


>  Fiddling with the code in other ways also fails.
>
>  Ideas?  Thanks!
>
>  Dean
>
>  >
>

--~--~---------~--~----~------------~-------~--~----~
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://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to