Update speedtester.py

master
Nixellion 2020-06-28 16:52:58 +03:00
parent 6c43af22c3
commit fa73a4f299
1 changed files with 4 additions and 4 deletions

View File

@ -44,8 +44,8 @@ def generate_plot_image(dates, downloads, uploads, name="speed", description="Sp
dates = matplotlib.dates.date2num(dates) dates = matplotlib.dates.date2num(dates)
fig = plt.figure(figsize=(15, 3)) fig = plt.figure(figsize=(15, 3))
plt.plot_date(dates, downloads, linestyle='solid', color="red", linewidth=2) plt.plot_date(dates, downloads, linestyle='solid', color="red", linewidth=2, marker=None)
plt.plot_date(dates, uploads, linestyle='dashed', color="green", linewidth=0.5) plt.plot_date(dates, uploads, linestyle='dashed', color="green", linewidth=0.5, marker=None)
plt.ylabel(description + " (Mbps)") plt.ylabel(description + " (Mbps)")
plt.tight_layout() plt.tight_layout()
plt.savefig(read_config()['output_image_path'].format(name)) plt.savefig(read_config()['output_image_path'].format(name))
@ -67,8 +67,8 @@ def generate_diff(dates, downloads, uploads):
def generate_updown_plot_simple(downloads, uploads, name, description): def generate_updown_plot_simple(downloads, uploads, name, description):
fig = plt.figure(figsize=(10, 3)) fig = plt.figure(figsize=(10, 3))
plt.plot(downloads, linestyle='solid', color="red", linewidth=2) plt.plot(downloads, linestyle='solid', color="red", linewidth=2, marker=None)
plt.plot(uploads, linestyle='dashed', color="green", linewidth=0.5) plt.plot(uploads, linestyle='dashed', color="green", linewidth=0.5, marker=None)
plt.ylabel(description + " (Mbps)") plt.ylabel(description + " (Mbps)")
plt.tight_layout() plt.tight_layout()
plt.savefig(read_config()['output_image_path'].format(name)) plt.savefig(read_config()['output_image_path'].format(name))