Fourier Transform in Python

I am a newbie in Signal Processing using Python. I want to find out how to transform magnitude value of accelerometer to frequency domain. My example code is following below:

In [44]:

  x = np.arange(30)
  plt.plot(x, np.sin(x))
  plt.xlabel('Number of Sample')
  plt.ylabel('Magnitude Value')
  plt.show()

Graph of the sample values

In here I want to plot the data to domain frequency. The desired output may be like this:
Graph of the intended output


Source: New Questions

Leave a Reply