diff options
Diffstat (limited to 'gnuradio-core/src/utils/gr_plot_iq.py')
-rwxr-xr-x | gnuradio-core/src/utils/gr_plot_iq.py | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/gnuradio-core/src/utils/gr_plot_iq.py b/gnuradio-core/src/utils/gr_plot_iq.py index 1752615618..f1f1c10526 100755 --- a/gnuradio-core/src/utils/gr_plot_iq.py +++ b/gnuradio-core/src/utils/gr_plot_iq.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # -# Copyright 2007 Free Software Foundation, Inc. +# Copyright 2007,2008 Free Software Foundation, Inc. # # This file is part of GNU Radio # @@ -20,8 +20,18 @@ # Boston, MA 02110-1301, USA. # -import scipy -from pylab import * +try: + import scipy +except ImportError: + print "Please install SciPy to run this script (http://www.scipy.org/)" + raise SystemExit, 1 + +try: + from pylab import * +except ImportError: + print "Please install Matplotlib to run this script (http://matplotlib.sourceforge.net/)" + raise SystemExit, 1 + from optparse import OptionParser matplotlib.interactive(True) |