matplotlib.artist.allow_rasterization#

matplotlib.artist.allow_rasterization(draw)[source]#

Decorator for Artist.draw method. Provides routinesthat run before and after the draw call. The before and after functionsare useful for changing artist-dependent renderer attributes or makingother setup function calls, such as starting and flushing a mixed-moderenderer.