From 6c43af22c32366924c4ed41eece4be9b5e0a3c7c Mon Sep 17 00:00:00 2001 From: Nixellion Date: Sun, 28 Jun 2020 16:48:38 +0300 Subject: [PATCH] Update speedtester.py --- speedtester.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/speedtester.py b/speedtester.py index eb5d00c..ecb0dcf 100644 --- a/speedtester.py +++ b/speedtester.py @@ -44,7 +44,8 @@ def generate_plot_image(dates, downloads, uploads, name="speed", description="Sp dates = matplotlib.dates.date2num(dates) fig = plt.figure(figsize=(15, 3)) - plt.plot_date(dates, downloads, fmt="b-") + plt.plot_date(dates, downloads, linestyle='solid', color="red", linewidth=2) + plt.plot_date(dates, uploads, linestyle='dashed', color="green", linewidth=0.5) plt.ylabel(description + " (Mbps)") plt.tight_layout() plt.savefig(read_config()['output_image_path'].format(name)) @@ -66,8 +67,8 @@ def generate_diff(dates, downloads, uploads): def generate_updown_plot_simple(downloads, uploads, name, description): fig = plt.figure(figsize=(10, 3)) - plt.plot(downloads, linestyle='dashed', color="red") - plt.plot(uploads, linestyle='dashed', color="green") + plt.plot(downloads, linestyle='solid', color="red", linewidth=2) + plt.plot(uploads, linestyle='dashed', color="green", linewidth=0.5) plt.ylabel(description + " (Mbps)") plt.tight_layout() plt.savefig(read_config()['output_image_path'].format(name))