@classmethod
def draw_all(cls, force=False):
    """
        Redraw all figures registered with the pyplot
        state machine.
        """
    for f_mgr in cls.get_all_fig_managers():
        if force or f_mgr.canvas.figure.stale:
            f_mgr.canvas.draw_idle()
