Open janssen opened 8 years ago
Note this from https://github.com/matplotlib/matplotlib/issues/6295:
Animations can work without restore_region, but the backend needs to have "support_blit" attribute set to False.
It defaults to True.
restore_region() is in class FigureCanvasAgg
def restore_region(self, region, bbox=None, xy=None):
renderer = self.get_renderer()
return renderer.restore_region(region, bbox,xy)
Not sure if one should use FigureCanvasKivy or FigureCanvasKivyAgg. Though I found out that blitting does not work as it should with Agg
I got a working animation with FigureCanvasKivyAgg and blitting. However, there is a memory leak and the animation slows down. Anyone knows how one can reuse texture since I only get seg fault when trying to use the same texture instance? Or a way to destroy the texture instance?
See https://gist.github.com/janssen/98598d5859e44687f12cf96ef29570e8.