From 1b55fb6979abc7ae325ab0e4820cf9d2ea254f6f Mon Sep 17 00:00:00 2001 From: Sascha Silbe Date: Sun, 28 Feb 2010 21:03:58 +0000 Subject: benchmark plots: use alternating labels ('tics') instead of abbreviating them --- diff --git a/benchmarks/gen-plots b/benchmarks/gen-plots index 9d6d43a..a2a678a 100755 --- a/benchmarks/gen-plots +++ b/benchmarks/gen-plots @@ -27,21 +27,24 @@ def genOpVsTimePlot(stats, ftype) : print "set key inside right" print "set boxwidth 0.93 relative" print "set style fill solid" - print "set style histogram clustered gap 2" + print "set style histogram clustered gap 3" print "set autoscale yfixmax" print "set xrange [-.5:6.6]" print "set ylabel 'Runtime [s]'" - print "set xlabel 'Operation'" + print "set xlabel ' ' offset 0,-1" print "set xtics scale 0" - print "plot "+",".join(["'-' using 1:xtic(2) with histograms title '%s'" % (vcs,) for vcs in vcsNames]) - for vcs in vcsNames : - printInlineData([(stats[vcs][lName+"Time"], sName) for (lName, sName) in zip(opNames, shortOpNames)]) + print "set x2tics scale 0" + print "set xtics nomirror ("+",".join(['"%s" %d' % (opName, idx) for (idx, opName) in enumerate(opNames) if (idx % 2) == 1])+")" + print "set x2tics nomirror offset graph 0,-1.12 ("+",".join(['"%s" %d' % (opName, idx) for (idx, opName) in enumerate(opNames) if (idx % 2) == 0])+")" + print "plot "+",".join(["'-' using 1 with histograms title '%s'" % (vcs,) for vcs in vcsNames]) + for vcs in vcsNames: + printInlineData([(stats[vcs][opName+"Time"],) for opName in opNames]) for vcs in vcsNames : print "set style histogram clustered gap 1" print "set output 'output/op-vs-time-%s.%s'" % (vcs,ftype) - print "plot '-' using 1:xtic(2) with histograms title '%s'" % (vcs,) - printInlineData([(stats[vcs][lName+"Time"], sName) for (lName, sName) in zip(opNames, shortOpNames)]) + print "plot '-' using 1 with histograms title '%s'" % (vcs,) + printInlineData([(stats[vcs][opName+"Time"],) for opName in opNames]) def genOpVsSizePlot(stats, ftype) : vcsNames = stats.keys() -- cgit v0.9.1