We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5a0cdf1 + 37c66d1 commit 0cf6e20Copy full SHA for 0cf6e20
galleries/examples/animation/frame_grabbing_sgskip.py
@@ -6,8 +6,6 @@
6
Use a MovieWriter directly to grab individual frames and write them to a
7
file. This avoids any event loop integration, and thus works even with the Agg
8
backend. This is not recommended for use in an interactive setting.
9
-
10
-Output generated via `matplotlib.animation.Animation.to_jshtml`.
11
"""
12
13
import numpy as np
@@ -39,5 +37,5 @@
39
37
for i in range(100):
40
38
x0 += 0.1 * np.random.randn()
41
y0 += 0.1 * np.random.randn()
42
- l.set_data(x0, y0)
+ l.set_data([x0], [y0])
43
writer.grab_frame()
0 commit comments