summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/examples/volk_benchmark/volk_plot.py
diff options
context:
space:
mode:
authorDouglas Anderson <danderson@ntia.doc.gov>2017-02-12 15:52:19 -0800
committerJohnathan Corgan <johnathan@corganlabs.com>2017-02-26 18:21:22 -0800
commit9e625c4821f4c63421b3d3747c0c4f358fef6c5f (patch)
tree41dedbe053417be7314cdce15d64fbbb89db4d8d /gnuradio-runtime/examples/volk_benchmark/volk_plot.py
parente5aabcc6a4a9335f3ef8abf5f89104b626e9364d (diff)
python3: update non-GRC components to use python2 or python3
Diffstat (limited to 'gnuradio-runtime/examples/volk_benchmark/volk_plot.py')
-rw-r--r--[-rwxr-xr-x]gnuradio-runtime/examples/volk_benchmark/volk_plot.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/gnuradio-runtime/examples/volk_benchmark/volk_plot.py b/gnuradio-runtime/examples/volk_benchmark/volk_plot.py
index 48f9922054..2e02773e05 100755..100644
--- a/gnuradio-runtime/examples/volk_benchmark/volk_plot.py
+++ b/gnuradio-runtime/examples/volk_benchmark/volk_plot.py
@@ -1,5 +1,7 @@
#!/usr/bin/env python
+from __future__ import division
+from __future__ import unicode_literals
import sys, math
import argparse
from volk_test_funcs import *
@@ -100,7 +102,7 @@ def main():
# Plot the results
- x0 = xrange(len(name_reg))
+ x0 = list(range(len(name_reg)))
i = 0
for t in (table_data):
ydata = []
@@ -119,7 +121,7 @@ def main():
if(args.percent != t):
# makes x values for this data set placement
# width of bars depends on number of comparisons
- wdth = 0.80/(M-1)
+ wdth = 0.80 / (M-1)
x1 = [x + i*wdth for x in x0]
i += 1
@@ -130,7 +132,7 @@ def main():
else:
# makes x values for this data set placement
# width of bars depends on number of comparisons
- wdth = 0.80/M
+ wdth = 0.80 / M
x1 = [x + i*wdth for x in x0]
i += 1