Skip to content

Instantly share code, notes, and snippets.

@thechaudharysab
Created June 24, 2018 23:11
Show Gist options
  • Save thechaudharysab/01f80c43f5fdba9400810e2eb0fa5697 to your computer and use it in GitHub Desktop.
Save thechaudharysab/01f80c43f5fdba9400810e2eb0fa5697 to your computer and use it in GitHub Desktop.
Bar chart that only uses the default parameters from .bar()
# Create data.
colors = ['red', 'orange', 'yellow', 'green', 'blue', 'purple', 'magenta']
votes = [3, 2, 5, 1, 7, 0, 2]
index = [i for i in range(1, len(colors)+1)]
# Plot data.
plt.bar(index, votes)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment