fit the graph onto the page