pressing 1 on the keyboard re-generates the graph