scaling the graph and text