1.color = ['rgb hex value']
plt.bar(x,y,bar_width,color =['#FA8600'],align='center',label ='xxx',alpha =1)
RGB三值转换hex值对应表:
颜色值RGB转换为HEX(十六进制)_daixiangcn的博客-CSDN博客_rgb转hex
2.color ='color name' or 'abbreviate color name'
plt.bar(x,y,bar_width,color ='red' or 'r',align='center',label ='xxx',alpha =1)