Plot data script cleanup