From 7b0e29c9f7f1af7dffcb48e83cc0efd4b3a81e62 Mon Sep 17 00:00:00 2001 From: Rose Thompson Date: Sun, 26 Nov 2023 23:13:14 -0600 Subject: [PATCH] Fixed subtle bug in branch prediction post processing script. --- bin/parseHPMC.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/parseHPMC.py b/bin/parseHPMC.py index d76a52d29..7e8eb7cde 100755 --- a/bin/parseHPMC.py +++ b/bin/parseHPMC.py @@ -255,9 +255,9 @@ def BarGraph(seriesDict, xlabelList, BenchPerRow, FileName, IncludeLegend): fig = plt.subplots(figsize = (EffectiveNumInGroup*BenchPerRow/8, 4)) colors = ['blue', 'blue', 'blue', 'blue', 'blue', 'blue', 'black', 'black', 'black', 'black', 'black', 'black'] for name in seriesDict: - xpos = np.arange(BenchPerRow) - xpos = [x + index*barWidth for x in xpos] values = seriesDict[name] + xpos = np.arange(len(values)) + xpos = [x + index*barWidth for x in xpos] plt.bar(xpos, Inversion(values), width=barWidth, edgecolor='grey', label=name, color=colors[index%len(colors)]) index += 1 plt.xticks([r + barWidth*(NumberInGroup/2-0.5) for r in range(0, BenchPerRow)], xlabelList)