Skip to content
This repository has been archived by the owner on Mar 13, 2022. It is now read-only.

Commit

Permalink
Windows file naming LUL
Browse files Browse the repository at this point in the history
  • Loading branch information
ElijahKSmith committed Jul 20, 2020
1 parent 6622f60 commit af2f6e2
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 1 deletion.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
3 changes: 2 additions & 1 deletion data_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ def calc_average(data):
return mean(clean_data)

def make_plot(x, data, ylabel, title):
file_title = title.replace(": ", "_")
fig, ax = plt.subplots()
marker_style = dict(color='tab:blue', marker='o', markersize=4)
plt.plot(x, data, linestyle='--', color='tab:blue')
Expand All @@ -32,7 +33,7 @@ def make_plot(x, data, ylabel, title):
average= round(calc_average(data),2)
note= 'Average over '+ str(num_matches)+' games: '+str(average)
plt.text(-0.5, 0.98*max(list(filter((None).__ne__, data))), note, fontsize=10, bbox=dict(facecolor='green', alpha=0.75))
plt.savefig(title+".png")
plt.savefig(file_title+".png")

#%% INITIALIZATION
start_time = time.time()
Expand Down

0 comments on commit af2f6e2

Please sign in to comment.