updating plot script