Now there are two list value as following:
lst1 = [17, 24, 16, 3, 9, 10, 8, 7, 6]
lst2 = [25, 30, 29, 6, 7, 10, 1, 2, 8]
and x labels:
lst_p = ['p1', 'p2', 'p3', 'p4', 'p5', 'p6', 'p7', 'p8', 'p9']
I want to plot the bars with lst1 and lst2 with different color based on the same x labels.
The code I tried:
width = 0.5
plt.hist((lst1, lst2),label = ("data1", "data2")) # A bar chart
plt.legend()
plt.xticks(lst_p)
but there is error:
AttributeError: 'NoneType' object has no attribute 'seq'