jjb: Set the X axis to a finer granularity for benchmark plots
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Wed, 25 Jan 2017 21:53:11 +0000 (16:53 -0500)
committerFrancis Deslauriers <francis.deslauriers@efficios.com>
Thu, 26 Jan 2017 19:21:45 +0000 (14:21 -0500)
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
scripts/lttng-baremetal-tests/generate-plots.py

index 03a4e18df7eaad1eb2539b423ee3b5ef1b0a0efd..89f6084ec072889e15cc70fb4e13d036680f1565 100644 (file)
@@ -101,14 +101,14 @@ def create_plot(df, graph_type):
 
         # Plot each line and its errorbars
         for (data, stdev) in  zip(data_cols, stdev_cols):
-            ax.errorbar(x=df.index.values, y=df[data], yerr=df[stdev], marker='o')
+            ax.errorbar(x=df.index.values, y=df[data].values, yerr=df[stdev].values, marker='o')
 
         ax.set_ylim(0)
         ax.grid()
         ax.set_xlabel('Jenkins Build ID')
         ax.set_ylabel('Meantime per syscall [us]')
 
-        ax.xaxis.set_major_locator(MaxNLocator(integer=True))
+        ax.xaxis.set_major_locator(MaxNLocator(integer=True, nbins=30))
 
         ax.legend(prop={'family': 'monospace'},
                     labels=curr_df.columns.values, bbox_to_anchor=(1.2,1))
This page took 0.023161 seconds and 4 git commands to generate.