update plot with trend