update graph axis