def restore_bbox():
    for (ax, asp, loc) in zip(fig.axes, asp_list, locator_list):
        ax.set_aspect(asp)
        ax.set_axes_locator(loc)
    fig.bbox = origBbox
    fig.bbox_inches = origBboxInches
    fig.transFigure._boxout = _boxout
    fig.transFigure.invalidate()
    fig.patch.set_bounds(0, 0, 1, 1)
def restore_bbox():
    for (ax, asp, loc) in zip(fig.axes, asp_list, locator_list):
        ax.set_aspect(asp)
        ax.set_axes_locator(loc)
    fig.bbox = origBbox
    fig.bbox_inches = origBboxInches
    fig.transFigure._boxout = _boxout
    fig.transFigure.invalidate()
    fig.patch.set_bounds(0, 0, 1, 1)