matplotlib.artist.allow_rasterization

matplotlib.artist.allow_rasterization(draw)[源代码]

Artist.Draw方法的装饰器。提供在draw调用之前和之后运行的例程。before和after函数对于更改与艺术家相关的渲染器属性或进行其他设置函数调用(例如启动和刷新混合模式渲染器)非常有用。