changes scale of graph