Merge pull request #20 from alexmonthy/fix-scope
[lttng-ci.git] / scripts / lttng-baremetal-tests / generate-plots.py
index 03a4e18df7eaad1eb2539b423ee3b5ef1b0a0efd..efc987734e95e808db75c88f570dce127c0d1ca8 100644 (file)
@@ -83,7 +83,7 @@ def create_plot(df, graph_type):
 
     plots = [baseline, lttng, one_thr, two_thr, four_thr, eight_thr, sixteen_thr]
 
-    title='Meantime per syscalls for {} testcase'.format(graph_type)
+    title='Meantime per event for {} testcase'.format(graph_type)
 
     # Create a axe object for each sub-plots
     f, arrax = plt.subplots(len(plots), sharex=True, figsize=(16, 25))
@@ -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.set_ylabel('Meantime per event [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.022938 seconds and 4 git commands to generate.