summaryrefslogtreecommitdiff
path: root/gnuradio-examples/python/volk_benchmark/volk_plot.py
diff options
context:
space:
mode:
Diffstat (limited to 'gnuradio-examples/python/volk_benchmark/volk_plot.py')
-rwxr-xr-xgnuradio-examples/python/volk_benchmark/volk_plot.py18
1 files changed, 10 insertions, 8 deletions
diff --git a/gnuradio-examples/python/volk_benchmark/volk_plot.py b/gnuradio-examples/python/volk_benchmark/volk_plot.py
index d7578c5a7..562d4f2f7 100755
--- a/gnuradio-examples/python/volk_benchmark/volk_plot.py
+++ b/gnuradio-examples/python/volk_benchmark/volk_plot.py
@@ -103,14 +103,16 @@ def main():
ydata.append(table_data[t][name]['avg'])
if(args.errorbars is False):
- stds = None
-
- s0.bar(x1, ydata, width=wdth,
- yerr=stds,
- color=colors[i%M], label=t,
- edgecolor='k', linewidth=2,
- error_kw={"ecolor": 'k', "capsize":5,
- "linewidth":2})
+ s0.bar(x1, ydata, width=wdth,
+ color=colors[i%M], label=t,
+ edgecolor='k', linewidth=2)
+ else:
+ s0.bar(x1, ydata, width=wdth,
+ yerr=stds,
+ color=colors[i%M], label=t,
+ edgecolor='k', linewidth=2,
+ error_kw={"ecolor": 'k', "capsize":5,
+ "linewidth":2})
s0.legend()
s0.set_ylabel("Processing time (sec) [{0:G} items]".format(res[0]['nitems']),