Matplotlib - Animations
Identify the error in this blitting code snippet:
import matplotlib.pyplot as plt fig, ax = plt.subplots() background = fig.canvas.copy_from_bbox(ax.bbox) line, = ax.plot([0, 1], [0, 1]) line.set_ydata([1, 0]) ax.draw_artist(line) fig.canvas.blit(ax.bbox)
