Advertisement
Guest User

Untitled

a guest
Apr 2nd, 2015
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. def init():
  2. im1.set_data(XYslice[0, :, :])
  3. im2.set_data(XZslice[0, Nplans/2:, :])
  4. return([im1, im2])
  5.  
  6. def animate(t):
  7. im1.set_data(XYslice[t, :, :])
  8. im2.set_data(XZslice[t, Nplans/2:, :])
  9. return [im1, im2]
  10.  
  11. anim = animation.FuncAnimation(fig, animate, np.arange(Ntime), interval=200,
  12. blit=True, init_func=init, repeat=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement