scale graph to screen