diff --git a/C9 Zven: CS per minute.png b/C9 Zven_CS per minute.png similarity index 100% rename from C9 Zven: CS per minute.png rename to C9 Zven_CS per minute.png diff --git a/C9 Zven: CSD at 10min.png b/C9 Zven_CSD at 10min.png similarity index 100% rename from C9 Zven: CSD at 10min.png rename to C9 Zven_CSD at 10min.png diff --git a/C9 Zven: Damage per gold spent.png b/C9 Zven_Damage per gold spent.png similarity index 100% rename from C9 Zven: Damage per gold spent.png rename to C9 Zven_Damage per gold spent.png diff --git a/C9 Zven: Vision Score.png b/C9 Zven_Vision Score.png similarity index 100% rename from C9 Zven: Vision Score.png rename to C9 Zven_Vision Score.png diff --git a/data_analysis.py b/data_analysis.py index dd21075..8774fe1 100644 --- a/data_analysis.py +++ b/data_analysis.py @@ -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') @@ -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()