Skip to content

Commit

Permalink
MNT: Update Matplotlib animation to use sequences
Browse files Browse the repository at this point in the history
  • Loading branch information
greglucas committed Jul 2, 2024
1 parent 5065fe0 commit 5e79dd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/plot_surface_animation.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@
def update_surface(t):
date_string = dates[t].astype("O").strftime("%H:%M")
title.set_text(f"{date_string}")
time_line.set_xdata(dates[t])
time_line.set_xdata([dates[t]])
mesh.set_array(output[t, :, :, i].T)
sun.set_data(sun_loc[t], 0)
sun.set_data([sun_loc[t]], [0])


ani = FuncAnimation(fig, update_surface, frames=range(ndates), interval=25)
Expand Down

0 comments on commit 5e79dd8

Please sign in to comment.