update graph print