Skip to content

Commit be85e20

Browse files
committed
DOC: tweak animation example so blitting could work
1 parent 1fbdcf2 commit be85e20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/animation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def next_time():
5454

5555

5656
def update(frame, art):
57-
return (art,)
57+
return art
5858

5959

6060
sot_c = SinOfTime()
@@ -73,7 +73,7 @@ def update(frame, art):
7373
ax.set_ylim(-1.1, 1.1)
7474
ani = FuncAnimation(
7575
fig,
76-
partial(update, art=lw),
76+
partial(update, art=(lw, fc)),
7777
frames=25,
7878
interval=1000 / 60,
7979
# TODO: blitting does not work because wrappers do not inherent from Artist

0 commit comments

Comments
 (0)