Guest User

Untitled

a guest
Jun 25th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. # Create data.
  2. colors = ['red', 'orange', 'yellow', 'green', 'blue', 'purple', 'magenta']
  3. votes = [3, 2, 5, 1, 7, 0, 2]
  4. index = [i for i in range(1, len(colors)+1)]
  5.  
  6. # Plot data.
  7. plt.bar(index, votes)
Add Comment
Please, Sign In to add comment