Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0cf6e20

Browse filesBrowse files
authored
Merge pull request #28805 from v0lta/main
add brackets to satisfy the new sequence requirement
2 parents 5a0cdf1 + 37c66d1 commit 0cf6e20
Copy full SHA for 0cf6e20

File tree

1 file changed

+1
-3
lines changed
Filter options

1 file changed

+1
-3
lines changed

‎galleries/examples/animation/frame_grabbing_sgskip.py

Copy file name to clipboardExpand all lines: galleries/examples/animation/frame_grabbing_sgskip.py
+1-3Lines changed: 1 addition & 3 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.