You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
call fig.canvas.blit if blitting is supported by that backend.
This may require some trickery to do pass the bboxes of the relevant artists up to the controller object. Also using the artist bboxes will only benefit non-notebook backends as the webagg backend (underlies nbagg and ipympl) just sends diffs of images to the front and ignores the bbox passed to blit.
Additional context
The text was updated successfully, but these errors were encountered:
Problem
Blitting makes animations go fassssstttt, and currently there is no use of blitting in this library :'(
This is because ipympl has not supported blitting and that is my primary backend. But support is coming in matplotlib/matplotlib#19059
Proposed Solution
In stead of
fig.canvas.draw_idle
https://github.com/ianhi/mpl-interactions/blob/1bf03b0850b04f62b73159e46be08708f81ca20a/mpl_interactions/controller.py#L166-L167
call
fig.canvas.blit
if blitting is supported by that backend.This may require some trickery to do pass the bboxes of the relevant artists up to the controller object. Also using the artist bboxes will only benefit non-notebook backends as the webagg backend (underlies nbagg and ipympl) just sends diffs of images to the front and ignores the bbox passed to
blit
.Additional context
The text was updated successfully, but these errors were encountered: