Skip to content

Instantly share code, notes, and snippets.

@BexTuychiev
Created September 21, 2020 10:42
Show Gist options
  • Save BexTuychiev/d0051a0bef78c235bb6d426e93ad1e67 to your computer and use it in GitHub Desktop.
Save BexTuychiev/d0051a0bef78c235bb6d426e93ad1e67 to your computer and use it in GitHub Desktop.
# Setting title, labels, etc.
fig, ax = plt.subplots()
ax.bar(medals.index, medals['Gold'])
ax.set(title='# gold medals by country', ylabel='# of medals', xlabel='Country')
ax.set_xticklabels(medals.index, rotation=90)
plt.show();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment