diff --git a/delay_from_china.py b/delay_from_china.py index 046cdc9..5a272e2 100644 --- a/delay_from_china.py +++ b/delay_from_china.py @@ -7,23 +7,6 @@ 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, 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 - pp.plot(new_time_axis, np.array(total_cases), label=f"{loc} - {day_of_above_hundred_cases}", marker=".") - - pp.yscale("log") - pp.xticks(rotation=45) - pp.legend(frameon=False) - pp.tight_layout() - - pp.savefig(name+".png") # plot delay pp.clf()