tweak to errorline plotting script