From 526aab119a2993248ac5abb773ce8af68231e3c1 Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Mon, 26 Aug 2019 14:51:16 -0400 Subject: [PATCH] plot: add grid to babeltrace benchmark Signed-off-by: Jonathan Rajotte --- scripts/babeltrace-benchmark/benchmark.py | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.34.1