modified plot-costs to plot error bars on the probability distributions too