updated plotting script for delay distribution