sync
This commit is contained in:
parent
b085d44337
commit
4d0c1648cf
@ -58,20 +58,22 @@ winner_avg /= winner_count
|
||||
idx = np.arange(6)
|
||||
bw = 0.15
|
||||
|
||||
fig = plt.figure(figsize=(6.3,3.6))
|
||||
fig = plt.figure(figsize=(5,3))
|
||||
ax = fig.gca()
|
||||
|
||||
ax.bar(idx-2*bw, sb0, bw, color='tomato', label='Sacrifice(n=4)')
|
||||
ax.bar(idx-bw, sb1, bw, color='limegreen', label='Sacrifice Max(n=4)')
|
||||
ax.bar(idx, human_avg, bw, color='blueviolet', label='Human Average')
|
||||
ax.bar(idx+bw, winner_avg, bw, color='gold', label='Winner Average')
|
||||
ax.bar(idx+2*bw, winner_max, bw, color='deepskyblue', label='Winner Max')
|
||||
# ax.bar(idx+2*bw, winner_max, bw, color='deepskyblue', label='Winner Max')
|
||||
|
||||
ax.set_ylabel('Average Fitness')
|
||||
ax.set_ylabel('Average Reward')
|
||||
ax.set_ylim(0,3.5)
|
||||
ax.set_xlabel('Match Ends At')
|
||||
ax.set_xticks(idx + bw / 2)
|
||||
ax.set_xticklabels(('10', '11', '12', '13', '14', '15'))
|
||||
ax.legend()
|
||||
ax.legend(ncol=2)
|
||||
fig.tight_layout()
|
||||
plt.show()
|
||||
# plt.show()
|
||||
plt.savefig("graph/sb_vs_human.eps")
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user