add gap plotting script