plot: add grid to babeltrace benchmark
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Mon, 26 Aug 2019 18:51:16 +0000 (14:51 -0400)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Mon, 26 Aug 2019 18:51:16 +0000 (14:51 -0400)
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
scripts/babeltrace-benchmark/benchmark.py

index dc1311ebcef51eeff398576e426554e8f0c0b75f..c31f87b0a219587404711a536678167d4f0bbc8f 100644 (file)
@@ -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)
This page took 0.023987 seconds and 4 git commands to generate.