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,13 +6,14 @@ import numpy as np
name="death_per_case"
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]
# death/case
pp.figure(name)
pp.figure(name, figsize=figsize)
pp.plot(time, np.array(total_deaths)/np.array(total_cases), label=f"{loc}", marker=".")
pp.yscale("log")