Fix scaling and rotate the graph.