Skip to content

Commit f5d5267

Browse files
committed
updating fig size and lithuania report
1 parent 4b9f40f commit f5d5267

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

grinch/data/local_imported_B.1.351.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,4 @@ Saint Martin,2021-03-23,,,community_sequencing,https://www.who.int/publications/
6666
Slovakia,2021-03-23,,,community_sequencing,https://www.who.int/publications/m/item/weekly-epidemiological-update---23-march-2021
6767
Sri Lanka,2021-03-23,,,community_sequencing,https://www.who.int/publications/m/item/weekly-epidemiological-update---23-march-2021
6868
Zimbabwe,2021-03-23,,,community_sequencing,https://www.who.int/publications/m/item/weekly-epidemiological-update---23-march-2021
69+
Lithuania,2021-03-24,2021-03-24,1,community_sequencing,https://www.lrt.lt/naujienos/lietuvoje/2/1372161/lietuvoje-siuo-metu-tiriama-dar-keliolika-atveju-del-koronaviruso-par-mutacijos-isplitus-savivaldybems-grestu-karantino-draudimai

grinch/scripts/figure_generation.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ def plot_bars(figdir, locations_to_dates, lineage):
314314
y.append(np.log10(count))
315315
x.append(location.replace("_", " ").title())
316316

317-
fig, ax = plt.subplots(1,1, figsize=(14,4), frameon=False)
317+
fig, ax = plt.subplots(1,1, figsize=(17,4), frameon=False)
318318

319319
plt.bar(x,y,color="#86b0a6")
320320

@@ -448,7 +448,7 @@ def plot_bars_by_freq(figdir, locations_to_dates, country_new_seqs, loc_to_earli
448448

449449
muted_pal = sns.cubehelix_palette(as_cmap=True)
450450

451-
fig, ax = plt.subplots(1,1, figsize=(14,4), frameon=False)
451+
fig, ax = plt.subplots(1,1, figsize=(17,4), frameon=False)
452452

453453
sns.barplot(x="Country", y="Count", data=df, dodge=False, palette=muted_pal(df["Frequency"]))
454454
plt.colorbar(cm.ScalarMappable(cmap=muted_pal), shrink=0.5)
@@ -482,7 +482,7 @@ def plot_frequency_new_sequences(figdir, locations_to_dates, country_new_seqs, l
482482
text_label_dict[country.replace("_"," ").title()] = f"{len(all_dates)}/{total}"
483483

484484

485-
fig, ax = plt.subplots(figsize=(14,4))
485+
fig, ax = plt.subplots(figsize=(17,4))
486486

487487
sort = {k: v for k, v in sorted(voc_frequency.items(), key=lambda item: item[1], reverse=True)}
488488

@@ -611,7 +611,7 @@ def plot_count_and_frequency_rolling(figdir,locations_to_dates, country_dates, c
611611
"#D18CAD","#A4A86F","lightgrey",
612612
"#982029"])
613613

614-
fig, ax = plt.subplots(figsize=(14,4))
614+
fig, ax = plt.subplots(figsize=(17,4))
615615
c = 0
616616
for i,v in frequency_over_time.items():
617617
#if len(v) > 10 and i in country_threshold:#so we do this for countries with more than ten days between the first variant sequence and last variant sequence
@@ -632,7 +632,7 @@ def plot_count_and_frequency_rolling(figdir,locations_to_dates, country_dates, c
632632
plt.savefig(os.path.join(figdir,f"Rolling_average_{lineage}_frequency_per_continent.svg"), format='svg', bbox_inches='tight')
633633

634634

635-
fig, ax = plt.subplots(figsize=(14,4))
635+
fig, ax = plt.subplots(figsize=(17,4))
636636
c = 0
637637
for i,v in counts_over_time.items():
638638
# if len(v) > 10 and i in country_threshold:
@@ -679,7 +679,7 @@ def cumulative_seqs_over_time(figdir, locations_to_dates,lineage):
679679
epiweek_counts = Counter(epiweek_lst)
680680
sorted_epiweeks = OrderedDict(sorted(epiweek_counts.items()))
681681

682-
fig, ax1 = plt.subplots(1,1,figsize=(14,4))
682+
fig, ax1 = plt.subplots(1,1,figsize=(17,4))
683683

684684
ax1.bar(list(sorted_epiweeks.keys()), list(sorted_epiweeks.values()), color="#86b0a6", width=5)
685685
ax2 = ax1.twinx()

0 commit comments

Comments
 (0)