We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 112dcf4 commit 1e602a6Copy full SHA for 1e602a6
1 file changed
examples/animation/multiple_axes.py
@@ -48,12 +48,12 @@
48
49
50
def animate(i):
51
- pos = np.cos(i), np.sin(i)
52
- point.set_data(*pos)
53
x = np.linspace(0, i, int(i * 25 / np.pi))
54
sine.set_data(x, np.sin(x))
55
- con.xy1 = pos
56
- con.xy2 = i, pos[1]
+ x, y = np.cos(i), np.sin(i)
+ point.set_data([x], [y])
+ con.xy1 = x, y
+ con.xy2 = i, y
57
return point, sine, con
58
59
0 commit comments