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?
Johann
--
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