Skip to content

Instantly share code, notes, and snippets.

@nzer0
Created August 25, 2016 02:06
Show Gist options
  • Select an option

  • Save nzer0/04012ee41087fcb4940477b39afc502b to your computer and use it in GitHub Desktop.

Select an option

Save nzer0/04012ee41087fcb4940477b39afc502b to your computer and use it in GitHub Desktop.
from JSAnimation import IPython_display
from matplotlib import animation
fig = plt.figure()
ax = plt.axes()
def init():
ax.plot(some_data)
def step(i):
ax.plot(other_ith_data)
animation.FuncAnimation(fig, step, init_func=init,
frames=11, interval=100, blit=False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment