change the position of the graph