From: Francis Deslauriers Date: Wed, 25 Jan 2017 21:53:11 +0000 (-0500) Subject: jjb: Set the X axis to a finer granularity for benchmark plots X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=bb43133fa152270933f7d92a68a1dedf9db6e58b;p=lttng-ci.git jjb: Set the X axis to a finer granularity for benchmark plots Signed-off-by: Francis Deslauriers --- diff --git a/scripts/lttng-baremetal-tests/generate-plots.py b/scripts/lttng-baremetal-tests/generate-plots.py index 03a4e18..89f6084 100644 --- a/scripts/lttng-baremetal-tests/generate-plots.py +++ b/scripts/lttng-baremetal-tests/generate-plots.py @@ -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))