# Revision history [back]

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

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

 3 No.3 Revision vdelecroix 6164 ●16 ●68 ●129 http://www.labri.fr/pe...

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