我有以下 playbook ,但第二组的结果情节被第一组歪曲了.
labels = ['CA', 'ME']
Addmitted = [500000, 100]
Applied = [10000000, 1000]
x = np.arange(len(labels))
width = 0.35
fig, ax = plt.subplots()
rects1 = ax.bar(x - width/2, Addmitted, width, label='Admitted')
rects2 = ax.bar(x + width/2, Applied, width, label='Applied')
ax.set_xticks(x, labels)
ax.legend()
ax.bar_label(rects1, padding=3)
ax.bar_label(rects2, padding=3)
fig.tight_layout()
plt.ylim(0, 12000000)
plt.show()