increase figure width

This commit is contained in:
fordprefect
2020-03-27 17:00:36 +01:00
parent 99a9677642
commit d8ebab65f3
5 changed files with 13 additions and 9 deletions

View File

@@ -6,12 +6,13 @@ import numpy as np
name="delay"
def plot(data, countries):
figsize = (10,5)
for loc in data:
if loc not in countries:
continue
time, new_cases, new_deaths, total_cases, total_deaths = data[loc]
pp.figure(name)
pp.figure(name, figsize=figsize)
day_of_above_hundred_cases = np.argwhere(np.array(total_cases) > 100)[0][0]
new_time_axis = np.arange(len(time)) - day_of_above_hundred_cases