From 3f5fd93a756d3fe2c3b6182d7a9a5681d42d7ff3 Mon Sep 17 00:00:00 2001 From: fordprefect Date: Mon, 30 Mar 2020 12:55:46 +0200 Subject: [PATCH] more finegrained grid in delay plots --- delay_from_china.py | 3 +-- delay_from_usa.py | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/delay_from_china.py b/delay_from_china.py index 5a272e2..cc67879 100644 --- a/delay_from_china.py +++ b/delay_from_china.py @@ -17,8 +17,7 @@ def plot(data, countries): 40000, 42500, 45000, 47500, 50000, 52500, 55000, 57500, 60000, 62500, 65000, 67500, - 70000, 72500, 75000, 77500, - 80000] + 70000, 72500, 75000, 77500]+list(np.arange(80000,max(data["China"][3]),500)) time_china = data["China"][0] case_date_china = np.array([time_china[np.argwhere(np.array(data["China"][3]) > cases)[0][0]] for cases in tcases]) diff --git a/delay_from_usa.py b/delay_from_usa.py index df355a3..7aca57f 100644 --- a/delay_from_usa.py +++ b/delay_from_usa.py @@ -28,7 +28,8 @@ def plot(data, countries): # plot delay pp.clf() delay = {} - tcases = [50, 100, 500, 1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000] + list(np.arange(10000, np.max(data["United States"][3]), 2500)) + tcases = [50, 100, 500, 1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 80500,81000,81500,82000,83000,835000,84000,84500] + list(np.arange(10000, np.max(data["United States"][3]), 2500)) + tcases.sort() time_us = data["United States"][0] try: