I am trying to make a bar graph (from mean values) that includes error bars (from standard deviation values) using matplotlib, but have been running into an error saying:
'Rectangle' object has no property 'labels'
and if I remove this line:
'Rectangle' object has no property 'rotation'
Some help and clarification into what is happening would be great! Here is an example of what I have so far below:
list1=[1,2,3,4,5,6]
list2=[0.1,0.2,0.3,0.4,0.5,0.6]
list3=['a','b','c','d','e','f']
x = range(len(list1))
y = list1 #contains mean values in list
z = list2 #contains std values in list
l=list3 #contains label names
plt.bar(x, y, yerr=z, color='green', rotation='vertical', label=l)
plt.show()
Thanks!


