update plotting script