I only just discovered the awesome that is matplotlib.mlab.psd()
, but I am having one issue, that is: how can I change the frequency range used by the method?
This has two return values: freqs
, which is pretty much the histogram bins for various frequencies, and Pxx
, the normalized power at each frequency bin. freqs
ranges in [0, 100] Hz. I can change the resolution using the parameter pad_to
, but I can't change the range to be, say, [0, 20]. Any ideas?