add markers
This commit is contained in:
@@ -15,16 +15,16 @@ def plot(data, countries):
|
||||
time, new_cases, new_deaths, total_cases, total_deaths = data[loc]
|
||||
|
||||
# total cases
|
||||
tc.plot(time, total_cases, label=f"{loc}")
|
||||
tc.plot(time, total_cases, label=f"{loc}", marker=".")
|
||||
|
||||
# total deaths
|
||||
td.plot(time, total_deaths, label=f"{loc}")
|
||||
td.plot(time, total_deaths, label=f"{loc}", marker=".")
|
||||
|
||||
# new cases
|
||||
nc.plot(time, new_cases, label=f"{loc}")
|
||||
nc.plot(time, new_cases, label=f"{loc}", marker=".")
|
||||
|
||||
# new deaths
|
||||
nd.plot(time, new_deaths, label=f"{loc}")
|
||||
nd.plot(time, new_deaths, label=f"{loc}", marker=".")
|
||||
|
||||
for ax, fig, name in [(tc, tcp, "total_cases"), (td, tdp, "total_deaths"), (nc, ncp, "new_cases"), (nd, ndp, "new_deaths")]:
|
||||
ax.set_yscale("log")
|
||||
|
||||
Reference in New Issue
Block a user