8000 DOC: fix docs · matplotlib/matplotlib@1e602a6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1e602a6

Browse files
tacaswellQuLogic
authored andcommitted
DOC: fix docs
1 parent 112dcf4 commit 1e602a6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/animation/multiple_axes.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@
4848

4949

5050
def animate(i):
51-
pos = np.cos(i), np.sin(i)
52-
point.set_data(*pos)
5351
x = np.linspace(0, i, int(i * 25 / np.pi))
5452
sine.set_data(x, np.sin(x))
55-
con.xy1 = pos
56-
con.xy2 = i, pos[1]
53+
x, y = np.cos(i), np.sin(i)
54+
point.set_data([x], [y])
55+
con.xy1 = x, y
56+
con.xy2 = i, y
5757
return point, sine, con
5858

5959

0 commit comments

Comments
 (0)
0