Created
June 24, 2018 23:11
-
-
Save thechaudharysab/01f80c43f5fdba9400810e2eb0fa5697 to your computer and use it in GitHub Desktop.
Bar chart that only uses the default parameters from .bar()
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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