BlitManager¶
- class sofia_redux.visualization.display.blitting.BlitManager(canvas: FigureCanvasAgg, gallery: Gallery, signals)[source]¶
Bases:
object
Manage drawing for background and animated artists.
- Parameters:
- canvasFigureCanvasAgg
The canvas to work with, this only works for sub-classes of the Agg canvas which have the
copy_from_bbox
andrestore_region
methods.- gallerysofia_redux.visualization.display.artist.Gallery
Gallery instance that tracks all artists to draw.
- signalssofia_redux.visualization.signals.Signals
Collection of PyQt signals for passing on information to other parts of the Eye.
- Attributes:
- draw_cidint
The matplotlib event CID for the draw_event signal.
Methods Summary
blit
()Blit the canvas.
Reset the canvas background.
Draw the canvas.
update_all
([event])Update the background and artists.
Update all animated artists.
Update the canvas background.
Methods Documentation
- blit() None [source]¶
Blit the canvas.
Restore the background without updating it, then update the animated artists on top of the restored background.