Plotting average data with error bars added.