8000 MNT: make histogram animation use blitting · matplotlib/matplotlib@cd0fe36 · GitHub
[go: up one dir, main page]

Skip to content

Commit cd0fe36

Browse files
committed
MNT: make histogram animation use blitting
1 parent ebfe80d commit cd0fe36

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/animation/histogram.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ def animate(i):
5858
top = bottom + n
5959
verts[1::5, 1] = top
6060
verts[2::5, 1] = top
61+
return [patch, ]
6162

62-
ani = animation.FuncAnimation(fig, animate, 100, repeat=False)
63+
ani = animation.FuncAnimation(fig, animate, 100, repeat=False, blit=True)
6364
plt.show()

0 commit comments

Comments
 (0)
0