errorBars function

Add error bars to a plot.