Added function to plot errors as shaded patch