Answers for "countplot rotation xlable in seaborn"

1

seaborn rotate xlabels

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)
Posted by: Guest on May-29-2020

Python Answers by Framework

Browse Popular Code Answers by Language