Adjust graph sizes depending on window size.