also markers

This commit is contained in:
fordprefect
2020-03-21 21:01:01 +01:00
parent dc7c2e1264
commit 45f9b7d716

View File

@@ -14,10 +14,10 @@ def plot(data, countries):
pp.figure(name) pp.figure(name)
day_of_first_death = np.argwhere(np.array(total_deaths) > 0)[0][0] day_of_first_death = np.argwhere(np.array(total_deaths) > 0)[0][0]
new_time_axis = np.arange(len(time)) - day_of_first_death new_time_axis = np.arange(len(time)) - day_of_first_death
pp.plot(new_time_axis, np.array(total_cases), label=f"{loc}") pp.plot(new_time_axis, np.array(total_cases), label=f"{loc}", marker=".")
pp.yscale("log") pp.yscale("log")
pp.xticks(rotation=90) pp.xticks(rotation=45)
pp.legend(frameon=False) pp.legend(frameon=False)
pp.tight_layout() pp.tight_layout()