Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 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)
Add Comment
Please, Sign In to add comment