From: Jonathan Rajotte Date: Mon, 26 Aug 2019 18:51:16 +0000 (-0400) Subject: plot: add grid to babeltrace benchmark X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=526aab119a2993248ac5abb773ce8af68231e3c1;p=lttng-ci.git plot: add grid to babeltrace benchmark Signed-off-by: Jonathan Rajotte --- diff --git a/scripts/babeltrace-benchmark/benchmark.py b/scripts/babeltrace-benchmark/benchmark.py index dc1311e..c31f87b 100644 --- a/scripts/babeltrace-benchmark/benchmark.py +++ b/scripts/babeltrace-benchmark/benchmark.py @@ -197,6 +197,7 @@ def plot_raw_value(branch, benchmark_type, x_data, y_data, labels, latest_values plt.ylabel("User + system time (s)") plt.xlabel("Latest commits") plt.legend() + plt.grid(True) # Put tick on the right side ax.tick_params(labeltop=False, labelright=True) @@ -239,6 +240,7 @@ def plot_delta_between_point( plt.ylabel("Seconds") plt.xlabel("Latest commits") plt.legend() + plt.grid(True) # Put tick on the right side ax.tick_params(labeltop=False, labelright=True) @@ -299,6 +301,7 @@ def plot_ratio(branch, benchmark_type, x_data, y_data, labels, latest_values): plt.ylabel("Ratio") plt.xlabel("Latest commits") plt.legend() + plt.grid(True) # Put tick on the right side ax.tick_params(labeltop=False, labelright=True)