atiburcio / dvp-u6-who-data

0 stars 0 forks source link

Rotate the x axis #4

Open sen1 opened 6 years ago

sen1 commented 6 years ago

You have:

sns.set_context("poster", font_scale=1)
f, ax = plt.subplots(figsize=(15, 10))

ax = sns.barplot(data=df, x="Country", y = "LEABY")

plt.title('LEABY by Country')
plt.savefig('Average LEABY by Country.png')
plt.show()

The xlabel "United States of America" is too long. In these types of cases, I would rotate to the x-axis to look nicer.

plt.xticks(rotation=90)