Nov-04-2018, 06:22 PM
I have created a list of average monthly temperatures and the high and low temperatures for each month. I am being asked to create a bar graph for each month's average temperature, and then add error bars where the upper limit of the error bar is the highest temperature that month, and the lower limit of the error bar is the lowest temperature of that month. The graph I made is below, but how do I add vertical error bars where I specify the upper and lower limits of it? I know how to use yerror but from what I have seen that only produces symmetrical error bars whereas mine would be different lengths above and below the graph.
plt.bar(list_of_months, average_temps)