updates plotting script