Rotate tick labels for seaborn barplot

前端 未结 5 1255
再見小時候
再見小時候 2021-01-30 20:20

I am trying to display a chart with rotated x-axis labels, but the chart is not displaying.

import seaborn as sns
%matplotlib inline

yellow=\'#FFB11E\'
by_schoo         


        
5条回答
  •  有刺的猬
    2021-01-30 21:20

    You can rotate seaborn xticks like so:

    sns.barplot(x='Organization Name', y='Score', data=df)
    
    plt.xticks(rotation=70)
    plt.tight_layout()
    

提交回复
热议问题