X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=scripts%2Fbabeltrace-benchmark%2Fbenchmark.py;h=518dce70ab117c0286ecfeb5fb53be5ffed02750;hb=056f7519e4772cdd4636d386a5252d9e23866729;hp=8dad78191057007cacd20c399c03123228f19f23;hpb=925d7893fbb737bc2547b3eb2d893535a713004e;p=lttng-ci.git diff --git a/scripts/babeltrace-benchmark/benchmark.py b/scripts/babeltrace-benchmark/benchmark.py index 8dad781..518dce7 100644 --- a/scripts/babeltrace-benchmark/benchmark.py +++ b/scripts/babeltrace-benchmark/benchmark.py @@ -179,6 +179,7 @@ def plot_raw_value(branch, benchmark_type, x_data, y_data, labels, latest_values ) if l_result >= ymax: ymax = 1.2 * l_result + ax = plt.gca() plt.ylim(ymin=0, ymax=ymax) plt.xticks(x_data, labels, rotation=90, family="monospace") plt.title(graph_get_title(branch, benchmark_type), fontweight="bold") @@ -186,6 +187,9 @@ def plot_raw_value(branch, benchmark_type, x_data, y_data, labels, latest_values plt.xlabel("Latest commits") plt.legend() + # Put tick on the right side + ax.tick_params(labeltop=False, labelright=True) + plt.tight_layout() return @@ -243,10 +247,12 @@ def plot_ratio(branch, benchmark_type, x_data, y_data, labels, latest_values): plt.xlabel("Latest commits") plt.legend() + # Put tick on the right side + ax.tick_params(labeltop=False, labelright=True) + plt.tight_layout() return - def generate_graph(branches, report_name, git_path): # The PDF document