fig = pylab.figure(figsize=(12, 9))
signal_axes = fig.add_subplot(211)
signal_axes.plot(xs, rawsignal)
fft_axes = fig.add_subplot(212)
fft_axes.set_title('FFT')
fft_axes.set_autoscaley_on(False)
fft_axes.set_ylim([0, 1000])
fft = scipy.fft(rawsignal)
fft_axes.plot(abs(fft))
pylab.show()
Python, Matplotlib, subplot: How to set the axis range?