import
matplotlib.pyplot as plt
days
=
[x
for
x
in
range
(
0
,
7
)]
Suspected
=
[
12
,
18
,
35
,
50
,
72
,
90
,
100
]
Cured
=
[
4
,
8
,
15
,
22
,
41
,
55
,
62
]
Deaths
=
[
1
,
3
,
5
,
7
,
9
,
11
,
13
]
plt.plot([], [], color
=
'blue'
,
label
=
'Suspected'
)
plt.plot([], [], color
=
'orange'
,
label
=
'Cured'
)
plt.plot([], [], color
=
'brown'
,
label
=
'Deaths'
)
plt.stackplot(days, Suspected, Cured,
Deaths, baseline
=
'zero'
,
colors
=
[
'blue'
,
'orange'
,
'brown'
])
plt.legend()
plt.title(
'No of Cases'
)
plt.xlabel(
'Day of the week'
)
plt.ylabel(
'Overall cases'
)
plt.show()