Skip to content

Commit 96654d6

Browse files
QuLogicmeeseeksmachine
authored andcommitted
Backport PR #28805: add brackets to satisfy the new sequence requirement
1 parent fc7deea commit 96654d6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

galleries/examples/animation/frame_grabbing_sgskip.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
Use a MovieWriter directly to grab individual frames and write them to a
77
file. This avoids any event loop integration, and thus works even with the Agg
88
backend. This is not recommended for use in an interactive setting.
9-
10-
Output generated via `matplotlib.animation.Animation.to_jshtml`.
119
"""
1210

1311
import numpy as np
@@ -39,5 +37,5 @@
3937
for i in range(100):
4038
x0 += 0.1 * np.random.randn()
4139
y0 += 0.1 * np.random.randn()
42-
l.set_data(x0, y0)
40+
l.set_data([x0], [y0])
4341
writer.grab_frame()

0 commit comments

Comments
 (0)