From 2b698f477f95836007fe994a6b20e66b4eda00c6 Mon Sep 17 00:00:00 2001 From: brandons209 Date: Sun, 19 Jul 2020 16:57:54 -0400 Subject: [PATCH] black formatting --- activitylog/activitylog.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/activitylog/activitylog.py b/activitylog/activitylog.py index 1569bff..fb24086 100644 --- a/activitylog/activitylog.py +++ b/activitylog/activitylog.py @@ -487,7 +487,7 @@ class ActivityLogger(commands.Cog): # make graph and send it fontsize = 30 - fig = plt.figure(figsize=(50,30)) + fig = plt.figure(figsize=(50, 30)) ax = plt.axes() # set date formater for x axis @@ -503,7 +503,7 @@ class ActivityLogger(commands.Cog): for col_name, col_data in df.iteritems(): if col_name == "times": continue - plt.plot("times", col_name, data=df, linewidth=3, marker='o', markersize=8) + plt.plot("times", col_name, data=df, linewidth=3, marker="o", markersize=8) # make graph look nice plt.title(f"{user} message history from {end_time} to now", fontsize=fontsize) @@ -512,7 +512,7 @@ class ActivityLogger(commands.Cog): plt.xticks(fontsize=fontsize) plt.yticks(fontsize=fontsize) plt.grid(True) - plt.legend(loc="best", prop={'size': 30}) + plt.legend(loc="best", prop={"size": 30}) fig.tight_layout() fig.savefig(save_path, dpi=fig.dpi) @@ -552,7 +552,7 @@ class ActivityLogger(commands.Cog): with open(log, "r") as f: for line in reversed(list(f)): # time interval check: - try: # shouldnt happen, but just in case + try: # shouldnt happen, but just in case current_time = parse_time_naive(line[:19]) except: continue