Jiranuwat commited on
Commit
9c8f91b
·
1 Parent(s): ff2a930

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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[country]['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]['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')
 
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')