Skip to content

Instantly share code, notes, and snippets.

@santiagocasas
Last active March 15, 2020 14:30
Show Gist options
  • Save santiagocasas/6f6f8a302cc96b788eb6268c9835202a to your computer and use it in GitHub Desktop.
Save santiagocasas/6f6f8a302cc96b788eb6268c9835202a to your computer and use it in GitHub Desktop.
plotmodels
tt= np.linspace(0,100,100)
plt.plot(tt, logistic_model(tt,4.8,50,100000), c='b', label='Logisitc')
plt.plot(tt, expo_model(tt, 0.23), c='g', label='Exponential')
plt.plot(tt, gompertz_model(tt, 12, 49, 100000), c='r', label='Gompertz')
plt.legend()
plt.xlabel('Time')
plt.ylabel('Cases')
plt.ylim(-1000,150000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment