Python 如何在打印时调整xticks标签 如下图所示,旋转的XTICK标记在标签的中间。 [1]: 相反,我希望它在最后打勾,这样就没有重叠。 得到这个的代码是 sns.heatmap(cov,annot=True) plt.xticks(rotation=45)[enter image description here][1]

Python 如何在打印时调整xticks标签 如下图所示,旋转的XTICK标记在标签的中间。 [1]: 相反,我希望它在最后打勾,这样就没有重叠。 得到这个的代码是 sns.heatmap(cov,annot=True) plt.xticks(rotation=45)[enter image description here][1],python,matplotlib,axis-labels,xticks,Python,Matplotlib,Axis Labels,Xticks,回答你的问题了吗 plt.xticks(rotation=45, horizontalalignment='right', fontweight='light' )

回答你的问题了吗

plt.xticks(rotation=45, 
           horizontalalignment='right',
           fontweight='light'  
           )