also markers
This commit is contained in:
@@ -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()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user