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

Lines 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy