# HG changeset patch # User John "Elwin" Edwards # Date 1421855100 18000 # Node ID 876786c5545079fca3b09180590fe26a914e7b4e # Parent 0037de90af8bf07c3a9b66be67409e52059f0bd6 Reduce the score graphs' column widths. More and narrower categories bring out more detail. diff -r 0037de90af8b -r 876786c55450 py/stats2.py --- a/py/stats2.py Wed Jan 14 10:21:10 2015 -0500 +++ b/py/stats2.py Wed Jan 21 10:45:00 2015 -0500 @@ -143,9 +143,9 @@ def mkscoregraph(game, scoredata): if isinstance(game, rlgall.ARogueGame): - scorewidth = 1500 + scorewidth = 1000 else: - scorewidth = 1000 + scorewidth = 500 scoregraph = SVGChart("{0}/score-{1}.svg".format(svgpath, game.uname)) scoregraph.style("ffff00") scoregraph.write(framerect) @@ -156,12 +156,13 @@ scale = 500 / scoremax for block, count in scoredata: n = block // scorewidth - barx = n * 75 + 100 + barx = n * 50 + 100 barh = scale * count bary = 550 - barh if count > 0: - scoregraph.write(bar3d(barx, 75, barh)) - scoregraph.write(xllabel.format(barx, block)) + scoregraph.write(bar3d(barx, 50, barh)) + if n % 2 == 0: + scoregraph.write(xllabel.format(barx, block)) for yl in range(scoredivs + 1): labeln = int(scoremax * yl / scoredivs) labelh = 550 + 8 - 500 * yl / scoredivs @@ -203,10 +204,10 @@ xldata = game.getXLCounts(15) deepdata = game.getDepthCounts(30) if isinstance(game, rlgall.ARogueGame): - scorewidth = 1500 + scorewidth = 1000 else: - scorewidth = 1000 - scoredata = game.getScoreCounts(10, scorewidth) + scorewidth = 500 + scoredata = game.getScoreCounts(15, scorewidth) mkxlgraph(game, xldata) mkscoregraph(game, scoredata) mkdeepgraph(game, deepdata)