Resize the graph