Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Axes cannot be animated using animation.py with blit #2322

Closed
hammer498 opened this issue Aug 22, 2013 · 0 comments
Closed

Axes cannot be animated using animation.py with blit #2322

hammer498 opened this issue Aug 22, 2013 · 0 comments

Comments

@hammer498
Copy link

When using animation.py with blit updates to axes are not drawn correctly. Tick marks update but labels do not as explained by this SO answer.

http://stackoverflow.com/a/10704274/852487

According to the answer, to fix this problem it seems line 792 in animation.py

bg_cache[a.axes] = a.figure.canvas.copy_from_bbox(a.axes.bbox)

needs to be changed to

bg_cache[a.axes] = a.figure.canvas.copy_from_bbox(a.axes.get_figure().bbox)
or perhaps
bg_cache[a.axes] = a.figure.canvas.copy_from_bbox(a.axes.clipbox)?

and line 798

ax.figure.canvas.blit(ax.bbox)

changed to

ax.figure.canvas.blit(ax.clipbox)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant