Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. import matplotlib.pyplot as plt
  2. import numpy as np
  3. from scipy.fftpack import fft
  4.  
  5. def save_fft(sig, sample_spacing_s, filepath):
  6. # Where is the dependency on time?
  7. f = fft(np.array(sig))
  8.  
  9. plt.figure()
  10. plt.xlabel('Frequency [Hz]')
  11. plt.ylabel('Magnitude []')
  12. plt.savefig(filepath)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement