animatplot icon indicating copy to clipboard operation
animatplot copied to clipboard

Blitting support

Open t-makaro opened this issue 5 years ago • 3 comments

In past tests, blitting has caused issues with the play/pause button. I'll need to experiment with it a bit, and maybe make changes to the Block._update methods.

An option in the Animation class to enable blitting would be ideal.

Worst case scenario, blitting isn't possible with the pause button, and I'll issue a warning if both are used.

t-makaro avatar Aug 09 '18 04:08 t-makaro

I'm getting some very strange issues, but neither the slider or pause button work properly with blitting. Blitting works perfectly if neither of the controls are used. I also don't think that %matplotlib notebook uses blitting at all since I can't determine any difference between using blitting and not in a notebook.

I think I may wait until matplotlib 3.0 to continue further experiments with this since they are refactoring their blitting system.

t-makaro avatar Aug 10 '18 18:08 t-makaro

Did you manage to get any further with this? Matplotlib is on v3.0.2 now, did they refactor their blitting system?

If there's really no blitting at all in %matplotlib notebook if would be useful to know if that's because of a bug or some active decision by someone.

TomNicholas avatar Jan 09 '19 21:01 TomNicholas

I haven't looked into this yet.

Dev note: Exploring this involved changing the call to FuncAnimation in the Animation call to use blit=True. I previously found that the pause button in particular caused problems.

t-makaro avatar Jan 09 '19 22:01 t-makaro