errorBars function

Draw error bars on a plot