diff options
Diffstat (limited to 'gnuradio-core/src/utils/gr_plot_const.py')
-rwxr-xr-x | gnuradio-core/src/utils/gr_plot_const.py | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/gnuradio-core/src/utils/gr_plot_const.py b/gnuradio-core/src/utils/gr_plot_const.py index 9ec75ddb9a..1503363bd5 100755 --- a/gnuradio-core/src/utils/gr_plot_const.py +++ b/gnuradio-core/src/utils/gr_plot_const.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,9 +20,19 @@ # Boston, MA 02110-1301, USA. # -import scipy -from pylab import * -from matplotlib.font_manager import fontManager, FontProperties +try: + import scipy +except ImportError: + print "Please install SciPy to run this script (http://www.scipy.org/)" + raise SystemExit, 1 + +try: + from pylab import * + from matplotlib.font_manager import fontManager, FontProperties +except ImportError: + print "Please install Matplotlib to run this script (http://matplotlib.sourceforge.net/)" + raise SystemExit, 1 + from optparse import OptionParser matplotlib.interactive(True) |