update plot and data