From ae23280f799abe5a0a78daa2587bf80751dee3d8 Mon Sep 17 00:00:00 2001 From: hanspi42 Date: Sat, 6 Jan 2018 22:15:55 +0100 Subject: [PATCH] Change to the graphics to make it work for games with 250 moves ... --- sgfanalyze.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sgfanalyze.py b/sgfanalyze.py index 9cb6c7f..0b3789d 100755 --- a/sgfanalyze.py +++ b/sgfanalyze.py @@ -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') @@ -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')