2010/1/17 Johann "Myrkraverk" Oskarsson <joh...@myrkraverk.com>:
> Hi all,
>
> Is it possible to plot a function without scaling the y-axis?  In
> particular, when animating a damped oscillator, I don't want
> subsequent frames to zoom in.
>
> Code example:
>
> 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)
>
> animate( [ 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 ) ] ).show()
>
> 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. It
should, and it used to.   Weird.

William
-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to