diff options
author | Johnathan Corgan | 2011-09-24 11:19:17 -0700 |
---|---|---|
committer | Johnathan Corgan | 2011-09-24 11:19:17 -0700 |
commit | 2e6df0c3084b29648648148b1bd5aeddc63fe00f (patch) | |
tree | b0d55f66ba2c40260a2d9b57ffcce4e10421990d /gnuradio-examples/python/ofdm | |
parent | 35222394b0515b91d814d8f17df75048782d1238 (diff) | |
parent | 1371c92be1ed0a4b371915168eecacd00fc3538c (diff) | |
download | gnuradio-2e6df0c3084b29648648148b1bd5aeddc63fe00f.tar.gz gnuradio-2e6df0c3084b29648648148b1bd5aeddc63fe00f.tar.bz2 gnuradio-2e6df0c3084b29648648148b1bd5aeddc63fe00f.zip |
Merge branch 'master' into next
Conflicts:
gr-qtgui/apps/usrp_display.py
Diffstat (limited to 'gnuradio-examples/python/ofdm')
-rwxr-xr-x | gnuradio-examples/python/ofdm/gr_plot_ofdm.py | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/gnuradio-examples/python/ofdm/gr_plot_ofdm.py b/gnuradio-examples/python/ofdm/gr_plot_ofdm.py index e3b347189..b24855148 100755 --- a/gnuradio-examples/python/ofdm/gr_plot_ofdm.py +++ b/gnuradio-examples/python/ofdm/gr_plot_ofdm.py @@ -20,14 +20,24 @@ # Boston, MA 02110-1301, USA. # -import scipy, pylab, math -import struct, sys -from pylab import * -from matplotlib.font_manager import fontManager, FontProperties +import math, struct, sys from optparse import OptionParser -from scipy import fftpack from math import log10 +try: + import scipy + from scipy import fftpack +except ImportError: + print "Error: Program requires scipy (see: www.scipy.org)." + sys.exit(1) + +try: + from pylab import * + from matplotlib.font_manager import fontManager, FontProperties +except ImportError: + print "Error: Program requires matplotlib (see: matplotlib.sourceforge.net)." + sys.exit(1) + matplotlib.interactive(True) matplotlib.use('TkAgg') |