Jiranuwat commited on
Commit
1650e3d
·
1 Parent(s): 0a5d592

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -24,7 +24,7 @@ def deriv(x, t, beta, gamma):
24
  return [dsdt, didt, drdt]
25
 
26
  #plot model
27
- def plotdata(t, s, i,r, e=None):
28
  # plot the data
29
  fig = plt.figure(figsize=(12,6))
30
  ax = [fig.add_subplot(221, axisbelow=True),
@@ -82,7 +82,7 @@ def SIR(country,t_infective):
82
  s, i, r = soln.T
83
  e = None
84
 
85
- plotdata(t, s, i,r)
86
 
87
  return R0,t_infective,gamma,beta
88
 
 
24
  return [dsdt, didt, drdt]
25
 
26
  #plot model
27
+ def plotdata(t, s, i,r,R0, e=None):
28
  # plot the data
29
  fig = plt.figure(figsize=(12,6))
30
  ax = [fig.add_subplot(221, axisbelow=True),
 
82
  s, i, r = soln.T
83
  e = None
84
 
85
+ plotdata(t, s, i,r,R0)
86
 
87
  return R0,t_infective,gamma,beta
88