Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -141,12 +141,12 @@ def main():
|
|
141 |
fig = plt.figure(figsize=(12,6))
|
142 |
ax = [fig.add_subplot(121, axisbelow=True),fig.add_subplot(122)]
|
143 |
ax[0].set_title('Monkeypox confirmed cases')
|
144 |
-
ax[0].plot(all_location[
|
145 |
ax[0].set_xlabel('Days')
|
146 |
ax[0].set_ylabel('Number of cases')
|
147 |
ax[0].legend()
|
148 |
|
149 |
-
scaler = all_location[
|
150 |
ax[1].set_title('Monkeypox confirmed cases compare with model')
|
151 |
ax[1].plot(scaler,lw=3,label='Real Infective')
|
152 |
ax[1].plot(i,lw=3,label='SIR model Infective')
|
|
|
141 |
fig = plt.figure(figsize=(12,6))
|
142 |
ax = [fig.add_subplot(121, axisbelow=True),fig.add_subplot(122)]
|
143 |
ax[0].set_title('Monkeypox confirmed cases')
|
144 |
+
ax[0].plot(all_location[country_code]['total_cases'],lw=3,label='Infective')
|
145 |
ax[0].set_xlabel('Days')
|
146 |
ax[0].set_ylabel('Number of cases')
|
147 |
ax[0].legend()
|
148 |
|
149 |
+
scaler = all_location[country_code]['total_cases'].apply(lambda x : x/pop)
|
150 |
ax[1].set_title('Monkeypox confirmed cases compare with model')
|
151 |
ax[1].plot(scaler,lw=3,label='Real Infective')
|
152 |
ax[1].plot(i,lw=3,label='SIR model Infective')
|