Skip to content

Commit

Permalink
Backport PR matplotlib#28805: add brackets to satisfy the new sequenc…
Browse files Browse the repository at this point in the history
…e requirement
  • Loading branch information
QuLogic authored and meeseeksmachine committed Sep 12, 2024
1 parent 69d4153 commit 7b941c8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions galleries/examples/animation/frame_grabbing_sgskip.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
Use a MovieWriter directly to grab individual frames and write them to a
file. This avoids any event loop integration, and thus works even with the Agg
backend. This is not recommended for use in an interactive setting.
Output generated via `matplotlib.animation.Animation.to_jshtml`.
"""

import numpy as np
Expand Down Expand Up @@ -39,5 +37,5 @@
for i in range(100):
x0 += 0.1 * np.random.randn()
y0 += 0.1 * np.random.randn()
l.set_data(x0, y0)
l.set_data([x0], [y0])
writer.grab_frame()

0 comments on commit 7b941c8

Please sign in to comment.