在旋转xÈU标签后,它无法与主刻度或条对齐。
这是我的密码:
x = df3[df3['Database'] == 'aminoglycoside'].Resistance_gene
y = df3[df3['Database'] == 'aminoglycoside'].Percent
plt.figure(figsize=(30,15))
plt.xticks(fontsize=20,rotation=45)
plt.margins(0.05)
plt.subplots_adjust(bottom=0.15)
plt.bar(x,y,width=0.5)
您可以使用水平对齐选项并将文本向右对齐,例如
拿着这个
相关问题 更多 >
编程相关推荐