On Wed, Feb 20, 2008 at 4:04 AM, Jason Grout
<[EMAIL PROTECTED]> wrote:
>
>  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.

I've posted a patch here:
    http://trac.sagemath.org/sage_trac/ticket/2244
that adds an option
    plot(..., randomize=False)
that turns off all randomness in the choice of interior points.

This patch should be applied *after* your (=Jason Grout's) plot
fix.   Jason, can you referee this?

>
>  Not to mention that the above code does the plot calculation only once,
>  which is faster anyway.
>
>
>
>  Jason
>
>
>  >
>



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to