话不多说, 先看代码
labels = ['A', 'B', 'C', 'D', 'E']
blue = [10, 20, 30, 40, 50]
yellow = [35, 15, 25, 20, 10]
blue_err = [1, 1, 1, 1, 1]
yellow_err = [1, 1, 1, 1, 1]
width = 0.5
fig, ax = plt.subplots()
ax.bar(labels, blue, width, yerr=blue_err, label='blue',