Skip to content

Commit

Permalink
Merge pull request #8 from hanspi42/master
Browse files Browse the repository at this point in the history
Change to the graphics to make it work for games with 250 moves ...
  • Loading branch information
lightvector committed Jan 7, 2018
2 parents 0cf8b61 + ae23280 commit 6a50ee4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sgfanalyze.py
Expand Up @@ -29,8 +29,8 @@ def graph_winrates(winrates, color, outp_fn):
plt.ylim(0, 1)
plt.xlabel("Move number", fontsize=12)
plt.ylabel("Black's win rate", fontsize=12)
plt.yticks([yc/10.0 for yc in range(0,10+1)], fontsize=8)
plt.xticks(range(0, max(winrates.keys()), 10), fontsize=8)
plt.yticks([yc/10.0 for yc in range(0,10+1)], fontsize=6)
plt.xticks(range(0, max(winrates.keys()), 10), fontsize=6)

for yc in range(0, 10):
plt.axhline(yc/10.0, 0, max(winrates.keys()), linewidth=0.4, color='0.7')
Expand All @@ -41,7 +41,7 @@ def graph_winrates(winrates, color, outp_fn):
for xc in range(0, max(winrates.keys()), 5):
plt.axvline(xc, 0, 1, linewidth=0.1, color='0.7')

plt.plot(X, Y, color='k', marker='.')
plt.plot(X, Y, color='k', marker='.', linewidth=0.2, markersize=3)

plt.savefig(outp_fn, dpi=200, format='pdf', bbox_inches='tight')

Expand Down

0 comments on commit 6a50ee4

Please sign in to comment.