Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added 08-31-2022.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Exploring COVID-19 Vaccine Effectiveness
## National View
![](img/animation.gif)

adding some tex - MB

## County View
![](img/comparison.png)
Expand Down
Binary file modified img/05-31-2021.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/06-30-2021.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/07-31-2021.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/08-31-2021.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/08-31-2022.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/09-30-2021.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/10-31-2021.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified img/11-30-2021.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 5 additions & 2 deletions src/animation.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import imageio as iio
import os

import time # added by Max Burtis for hw02
def create_gif(filename_save):
"""This function creates a gif animation from a folder of png images
Parameters:
Expand All @@ -15,8 +15,11 @@ def create_gif(filename_save):
#makes a list of im NumPy arrays based on a list of .png images (read from folder)
images = list()

timestamps=[image for image in os.listdir('img') if image.endswith('png')] #added by Max Burtis for hw02
timestamps.sort(key=lambda x: time.mktime(time.strptime(x[:-4],"%m-%d-%Y"))) #added by Max Burtis for hw02

#this part looks at the img directory and reads in all the files that end with .png (only going to bring in those)
for filename in sorted(os.listdir('img')):
for filename in timestamps: #added by Max Burtis for hw02
if filename[-4:] == '.png' and not filename == 'comparison.png':
f = os.path.join('img',filename)
im = iio.imread(f)
Expand Down
4 changes: 3 additions & 1 deletion src/scatters.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ def scatter(month):
y = df[ylabel]
area = df['Census2019_18PlusPop'] / 1e6 #population in millions



fig, ax = plt.subplots()
ax.set_xlabel("Percent of Population (+18) Considered Fully Vaccinated")
ax.set_ylabel("Deaths per 100K")
Expand Down Expand Up @@ -53,7 +55,7 @@ def scatter(month):
for area_scl in [0.5, 2, 4]:
ax.scatter([], [], s = plot_scl*area_scl, c = "gray", alpha = 0.5, label = str(area_scl) + 'M')
ax.legend(loc = (1.05, 0.3), title="Population (Millions)", labelspacing = 1.5, borderpad = 1)

plt.text(30, 200, month, fontsize = 30).set_alpha(.4)
plt.tight_layout()
plt.savefig('img/'+month+'.png')

Expand Down