-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshowfigureissueperwerk.py
76 lines (57 loc) · 2.24 KB
/
showfigureissueperwerk.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import matplotlib.pyplot as plt
import numpy as np
plt.figure()
numberofissueWeek1=[24, 9, 4, 2, 5, 6, 5, 8]
numberofissueWeek2=[10, 12, 4, 1, 1, 1, 1, 37, 1]
numberofissueWeek3=[21, 8, 9, 2, 9, 10, 26, 5]
n_groups=len(numberofissueWeek1)
meansone=range(1,n_groups,1)
weekcount=numberofissueWeek1
fig,ax=plt.subplots()
index = np.arange(n_groups)
bar_width = 0.35
opacity = 0.4
rects1 = plt.bar(index+bar_width, weekcount, bar_width,alpha=opacity, color='b',label='Number of issues')
#rects2 = fbadsmell1.bar(index + bar_width, means_women, bar_width,alpha=opacity,col or='r',label='Women')
plt.xlabel('Week')
plt.ylabel('Number of Issues')
plt.title('Number of Issues Every Week')
plt.plot(index+bar_width+bar_width/2,numberofissueWeek1,'r-')
#fbadsmell1.xticks(index + bar_width, ('A', 'B', 'C', 'D', 'E'))
#fbadsmell1.ylim(0,40)
plt.legend()
plt.show()
n_groups=len(numberofissueWeek2)
meansone=range(1,n_groups,1)
weekcount=numberofissueWeek2
fig,ax=plt.subplots()
index = np.arange(n_groups)
bar_width = 0.35
opacity = 0.4
rects1 = plt.bar(index+bar_width, weekcount, bar_width,alpha=opacity, color='b',label= 'Number of issues')
#rects2 = fbadsmell1.bar(index + bar_width, means_women, bar_width,alpha=opacity,col or='r',label='Women')
plt.xlabel('Week')
plt.ylabel('Number of Issues')
plt.title('Number of Issues Every Week')
plt.plot(index+bar_width+bar_width/2,numberofissueWeek2,'r-')
#fbadsmell1.xticks(index + bar_width, ('A', 'B', 'C', 'D', 'E'))
#fbadsmell1.ylim(0,40)
plt.legend()
plt.show()
n_groups=len(numberofissueWeek3)
meansone=range(1,n_groups,1)
weekcount=numberofissueWeek3
fig,ax=plt.subplots()
index = np.arange(n_groups)
bar_width = 0.35
opacity = 0.4
rects1 = plt.bar(index+bar_width, weekcount, bar_width,alpha=opacity, color='b',label= 'Number of issues')
#rects2 = fbadsmell1.bar(index + bar_width, means_women, bar_width,alpha=opacity,col or='r',label='Women')
plt.xlabel('Week')
plt.ylabel('Number of Issues')
plt.title('Number of Issues Every Week')
plt.plot(index+bar_width+bar_width/2,numberofissueWeek3,'r-')
#fbadsmell1.xticks(index + bar_width, ('A', 'B', 'C', 'D', 'E'))
#fbadsmell1.ylim(0,40)
plt.legend()
plt.show()