Skip to content

kituyiharry/covplot

Repository files navigation

SARS-COV-2 (Corona-Virus) Comparison Animation

SARS-COV-2 Comparison tool

plotex plotex2

This is a tool I made in python requiring only matplotlib and numpy to plot an animation of SARS-COV-2 statistics based on This dataset

Usage

The following are required to run the program

  1. Python >= 3.6 (May work on previous versions)
  2. Matplotlib
  3. Numpy (version 1.18.2)

Before running, ensure the file "./covid_19_data.csv" is available with your data. I would advice using excel to remove occurrences of commas as the can alter the behavior of numpy recvfromcsv. A sample of the data is available. A copy of the data in csv is available however you would need to visit the link to get more up to date data. Link is This dataset

then simply run

# python3 covid_19_anim.py

It will prompt for input, follow instructions notes as indicated and the plot should show

Saving animation

to save the animation locally, simply uncomment lines 496, 497 and 500. You may need to have FFmpeg to achieve this

Blog Post

Coming soon

Please like and share if you found the tool interesting

About

Animate COVID stats using matplotlib and numpy (remember flattening the curve?)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages