update plot