summaryrefslogtreecommitdiff
path: root/gr-utils/python/utils/gr_plot_char
diff options
context:
space:
mode:
authorMarcus Müller <marcus@hostalia.de>2018-08-25 01:23:10 +0200
committerMarcus Müller <marcus@hostalia.de>2018-11-02 22:15:53 +0100
commit65a3df1665a8286c82307828891577613a37d70a (patch)
tree510634e8f453a6cbf4f5287897ab7c09d5a7ef4c /gr-utils/python/utils/gr_plot_char
parent990de8eed1bf7d4d1a7e9e453b32906ca2860949 (diff)
remove completely unused scipy from gr-util plot apps
Diffstat (limited to 'gr-utils/python/utils/gr_plot_char')
-rwxr-xr-xgr-utils/python/utils/gr_plot_char10
1 files changed, 3 insertions, 7 deletions
diff --git a/gr-utils/python/utils/gr_plot_char b/gr-utils/python/utils/gr_plot_char
index 3199919fa9..dd6803abfd 100755
--- a/gr-utils/python/utils/gr_plot_char
+++ b/gr-utils/python/utils/gr_plot_char
@@ -22,15 +22,11 @@
from __future__ import print_function
-try:
- import scipy
-except ImportError:
- print("Please install SciPy to run this script (http://www.scipy.org/)")
- raise SystemExit(1)
-
from argparse import ArgumentParser
from gnuradio.plot_data import plot_data
+import numpy
+
def main():
description = "Takes a GNU Radio byte/char binary file and displays the samples versus time. You can set the block size to specify how many points to read in at a time and the start position in the file. By default, the system assumes a sample rate of 1, so in time, each sample is plotted versus the sample number. To set a true time axis, set the sample rate (-R or --sample-rate) to the sample rate used when capturing the samples."
@@ -46,7 +42,7 @@ def main():
args = parser.parse_args()
- datatype = scipy.int8
+ datatype = numpy.int8
dc = plot_data(datatype, args.files, args)
if __name__ == "__main__":