hi all,
I was trying to animate a plot, with only few frames (50).
I get a very slow animate:
from numpy import linspace
t_vec = linspace(0,Tn,50)
L = Graphics()
v = []
tp = []
Xp = []
Yp = []
for tn in t_vec:
tp.append(tn)
Xp.append(X.subs(val_dict).subs(t = tn))
Yp.append(Y.subs(val_dict).subs(t = tn))
L += list_plot(zip(Xp,Yp), plotjoined = True)
v.append(L)
Xmin = min(Xp)
Xmax = max(Xp)
Ymin = min(Yp)
Ymax = max(Yp)
a = animate(v, xmin = Xmin, xmax = Xmax, ymin = Ymin, ymax = Ymax)
timeit('a.show()', repeat = 1)
5 loops, best of 1: 12 s per loop
is this expected?
thanks
maurizio
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org