Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f6982b9

Browse files
authoredJun 7, 2021
Create CovidPlot.md
1 parent 90317da commit f6982b9

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed
 

‎CovidPlot.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# CovidPlot
2+
An easy way to plot COVID-19 info.
3+
4+
### Sofware (for developers)
5+
6+
[Get the last version of this software here](https://github.com/PythonForChange/CovidPlot/blob/main/covidPlot.py).
7+
CovidPlot
8+
9+
### Installation
10+
#### Option 1: Use pip (recommended, last stable version)
11+
1. Install pyforchange
12+
```
13+
pip install pyforchange
14+
```
15+
2. Import covidPlot in your python file
16+
```python
17+
import pyforchange.covidPlot
18+
```
19+
3. Enjoy!
20+
21+
#### Option 2: Download the source (unstable pre-realise version)
22+
1. Download [covidPlot](covidPlot.py) into your proyect folder
23+
2. Import covidPlot in your python file
24+
```python
25+
import covidPlot
26+
```
27+
3. Enjoy!
28+
29+
### Usage
30+
Import covidPlot and define datasets.
31+
```python
32+
from pyforchange.covidPlot import *
33+
34+
chile=CovidData()
35+
usa=CovidData('United States')
36+
```
37+
38+
Plot the parameters you want for each dataset.
39+
```python
40+
chile.plot('new_vaccinations_smoothed_per_million')
41+
42+
chile.plot("casos")
43+
44+
usa.plot("new_cases")
45+
46+
chile.plot("vacunas")
47+
48+
usa.plot("total_cases")
49+
```

0 commit comments

Comments
 (0)
Please sign in to comment.