Yes. Please see
https://www.sagenb.org/home/pub/1674/
The code is
step = 0.1
L = Graphics()
v = []
for i in srange(0,1,step):
L += line([(i,i^2),(i+step,(i+step)^2)], rgbcolor=(1,0,0), thickness=2)
L.xmin(0); L.ymin(0)
v.append(L)
a = animate(v)
a.show()
----
By the way, that I have to give the xmin, ymin in the loop instead of writing
a = animate(v, xmin=0, ymin=0) is a bug. I just looked into it and fixed it:
http://trac.sagemath.org/sage_trac/ticket/2066
William
> Yes. Please see
>
> https://www.sagenb.org/home/pub/1674/
>
> The code is
>
> step = 0.1
> L = Graphics()
> v = []
> for i in srange(0,1,step):
> L += line([(i,i^2),(i+step,(i+step)^2)], rgbcolor=(1,0,0), thickness=2)
> L.xmin(0); L.ymin(0)
> v.append(L)
>
> a = animate(v)
> a.show()
When I execute this code in the notebook ('SAGE Version 2.10, Release
Date: 2008-01-18'), I receive the following error:
sh: convert: command not found
Ted
In the future animate might be changed to use png's and javascript
instead of animated gif's.
- William
(Sent from my iPhone.)