Do our best to keep the graph when resizing the window.