Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. import matplotlib
  2. import matplotlib.pyplot as plt
  3. import numpy as np
  4.  
  5. men_means = [2000, 3400, 3000, 3005, 2700]
  6. women_means = [2500, 3200, 3004, 2000, 2005]
  7.  
  8. x = np.arange(len(labels)) # the label locations
  9. width = 0.35 # the width of the bars
  10.  
  11. fig, ax = plt.subplots()
  12. rects1 = ax.bar(x - width/2, men_means, width, label='Men')
  13. rects2 = ax.bar(x + width/2, women_means, width, label='Women')
  14.  
  15. plt.axvline(mean, color="red")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement