summaryrefslogtreecommitdiff
path: root/gnuradio-core/src/utils/gr_plot_data.py
diff options
context:
space:
mode:
Diffstat (limited to 'gnuradio-core/src/utils/gr_plot_data.py')
-rwxr-xr-xgnuradio-core/src/utils/gr_plot_data.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/gnuradio-core/src/utils/gr_plot_data.py b/gnuradio-core/src/utils/gr_plot_data.py
index f0c2436bdf..abc210c08a 100755
--- a/gnuradio-core/src/utils/gr_plot_data.py
+++ b/gnuradio-core/src/utils/gr_plot_data.py
@@ -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)