Auto-scales a figure to fit in the space remaining on a page