dean moore wrote: > Thanks for the response! I used some slightly different code; in case > anyone else deals > with the "wiggling graph" problem before the next SAGE is out, one > snippet that worked > for me follows: > > /def f(x): > return x*sin(x^2) > v = [] > > # Define graph outside loop to avoid "wiggling graph" problem: > > graph = plot(f, [-1, 3], thickness = 1, rgbcolor = (0,0,1)) > > # Now animate this graph: > > for i in srange(10): > v.append(graph) > > curve = animate(v) > curve.show()/ > > --- > > The graph was "immobile."
The above code is still preferable, even after the next release, because there is still some randomness in how interior points are chosen, leading to some wiggle in the graph. The only thing fixed in this next release is the endpoints being adjusted randomly. Not to mention that the above code does the plot calculation only once, which is faster anyway. Jason --~--~---------~--~----~------------~-------~--~----~ 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 URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---
