update plot script