Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Description
Describe the issue
Summary
RendererAgg.restore_region
takes two optional kwargs,bbox
andxy
, which specify respectively a subregion and and offset for the restoring. These were introduced inb1c784d for manual animations where subregions of specific patterns would be blitted with certain offsets. This was demonstrated in a single example, which was removed ine547d6f, and never used anywhere else.
I would suggest deprecating and then getting rid of the feature: there doesn't seem to be much demand for it (no other use anywhere in the library or the examples); the kind of animation it allows is extremely specific, and likely it should be possible to build something similarly efficient usingFigureImage
(i.e., drawing a non-resampled array at a given position should really just involve setting the correspoding pixels in the bitmap) anyways.
Also, that means one less thing to implement in mplcairo for feature parity :)
Is there anyone opposed to such a removal?