Update speedtester.py
parent
1118baa099
commit
5a19a697d9
|
|
@ -51,8 +51,8 @@ def generate_plot_image(dates, downloads, uploads, name="speed", description="Sp
|
|||
fig = plt.figure(figsize=(15, 3))
|
||||
plt.plot_date(dates, uploads, linestyle='dashed', color="#2b4f72", linewidth=1, marker=None)
|
||||
plt.plot_date(dates, downloads, linestyle='solid', color="#14fc1b", linewidth=2, marker=None)
|
||||
plt.ylabel(description + " (Mbps)")
|
||||
plt.xlabel("Generated at: " + datetime.now().strftime('%H:%M %d.%m.%Y'))
|
||||
plt.ylabel(description + " (Mbps)")
|
||||
plt.tight_layout()
|
||||
plt.savefig(read_config()['output_image_path'].format(name))
|
||||
|
||||
|
|
@ -73,8 +73,11 @@ 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='solid', color="red", linewidth=2, marker=None)
|
||||
plt.plot(uploads, linestyle='dashed', color="green", linewidth=0.5, marker=None)
|
||||
plt.style.use('dark_background')
|
||||
|
||||
plt.plot(uploads, linestyle='dashed', color="#2b4f72", linewidth=1, marker=None)
|
||||
plt.plot(downloads, linestyle='solid', color="#14fc1b", linewidth=2, marker=None)
|
||||
plt.xlabel("Generated at: " + datetime.now().strftime('%H:%M %d.%m.%Y'))
|
||||
plt.ylabel(description + " (Mbps)")
|
||||
plt.tight_layout()
|
||||
plt.savefig(read_config()['output_image_path'].format(name))
|
||||
|
|
|
|||
Loading…
Reference in New Issue