📜  seaborn 旋转 xlabels - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:29.729000             🧑  作者: Mango

代码示例1
plt.figure(figsize=(10,5))
chart = sns.countplot(
    data=data[data['Year'] == 1980],
    x='Sport',
    palette='Set1'
)
chart.set_xticklabels(chart.get_xticklabels(), rotation=45)