Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import matplotlib
- import matplotlib.pyplot as plt
- import numpy as np
- men_means = [2000, 3400, 3000, 3005, 2700]
- women_means = [2500, 3200, 3004, 2000, 2005]
- x = np.arange(len(labels)) # the label locations
- width = 0.35 # the width of the bars
- fig, ax = plt.subplots()
- rects1 = ax.bar(x - width/2, men_means, width, label='Men')
- rects2 = ax.bar(x + width/2, women_means, width, label='Women')
- plt.axvline(mean, color="red")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement