Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Dancing x-axis in animation

I'm very new to sage, and I'm trying to make the following animation:

a = animate([sin(20(x - float(k)))/x for k in srange(0,2pi,0.5)], xmin=1, xmax=4, figsize=[3,2])

a.gif(savefile='my_animation.gif', show_path=True)

The problem is that if you look at the animation you'll notice that the x-axis is moving all the time which I find very distracting. Is there a way to tell sage that I want to center the x-axis, so that it stops moving with the animation?

click to hide/show revision 2
I realized how to solve the problem, please disregard the question

Dancing x-axis in animationanimation [solved]

I'm very new to sage, and I'm trying to make the following animation:

a = animate([sin(20(x - float(k)))/x for k in srange(0,2pi,0.5)], xmin=1, xmax=4, figsize=[3,2])

a.gif(savefile='my_animation.gif', show_path=True)

The problem is that if you look at the animation you'll notice that the x-axis is moving all the time which I find very distracting. Is there a way to tell sage that I want to center the x-axis, so that it stops moving with the animation?

Dancing x-axis in animation [solved]

I'm very new to sage, and I'm trying to make the following animation:

a = animate([sin(20(x animate([sin(20*(x - float(k)))/x for k in srange(0,2pi,0.5)], srange(0,2*pi,0.5)],              xmin=1, xmax=4, figsize=[3,2])

figsize=[3,2]) a.gif(savefile='my_animation.gif', show_path=True)

show_path=True)

The problem is that if you look at the animation you'll notice that the x-axis is moving all the time which I find very distracting. Is there a way to tell sage that I want to center the x-axis, so that it stops moving with the animation?