diff --git a/erp5/util/benchmark/report.py b/erp5/util/benchmark/report.py index 4ff4f09901a8e368e3278fd8c67faa1f9e512625..abf1cb397544752600e680594280bc73d50a0da3 100755 --- a/erp5/util/benchmark/report.py +++ b/erp5/util/benchmark/report.py @@ -293,9 +293,16 @@ def drawBarDiagram(axes, stat_list, only_average=False): # Create the bars ind = numpy.arange(len(label_list)) - width = 0.33 - avg_rects = axes.bar(ind + width, mean_list, width, color='r', label='Mean') + if only_average: + width = 1 + avg_rect_position = ind + else: + width = 0.33 + avg_rect_position = ind + width + + avg_rects = axes.bar(avg_rect_position, mean_list, width, color='r', + label='Mean') axes.errorbar(numpy.arange(0.5, len(stat_list)), mean_list, yerr=[yerr_lower, yerr_upper], fmt=None,