remove obsolete plot
This commit is contained in:
@@ -7,23 +7,6 @@ name="delay"
|
|||||||
|
|
||||||
def plot(data, countries):
|
def plot(data, countries):
|
||||||
figsize = (10,5)
|
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
|
# plot delay
|
||||||
pp.clf()
|
pp.clf()
|
||||||
|
|||||||
Reference in New Issue
Block a user