update graph plot