This appears to be a workaround (giving animate the ymin, ymax instead
of plot):
var('t')
damped_oscillator = 41/311*sqrt(311)*e^(-3/8*t)*sin(1/8*sqrt(311)*t) +
3*e^(-3/8*t)*cos(1/8*sqrt(311)*t)
ps = [plot(lambda x: damped_oscillator( t = x + k ), -1/2, 3*pi,
ymin=-2, ymax=3.5) for k in srange( 0, pi, 0.3)]
animate(ps,ymin=-2, ymax=3.5, xmin = -.5, xmax = 3*pi).show()
-Marshall Hampton
On Jan 18, 2:34 am, William Stein <[email protected]> wrote:
> On Mon, Jan 18, 2010 at 12:14 AM, Simon King <[email protected]> wrote:
> > Hi!
>
> > On Jan 17, 10:57 pm, William Stein <[email protected]> wrote:
> > [...]
> >> > Is there a way to *fix* the y-axis to the range [-2, 3.5] in the above
> >> > example?
>
> >> Do this:
>
> >> It's pretty annoying that the input you give above doesn't work.
>
> > Do what?
>
> He asked to fix the y-axis. The input he gave *should* have fixed the
> y-axis, but it doesn't. This is a bug.
>
> William
--
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