defer_draw

glue.utils.matplotlib.defer_draw(func)[source]

Decorator that globally defers all Agg canvas draws until function exit.

If a Canvas instance’s draw method is invoked multiple times, it will only be called once after the wrapped function returns.