title: Python - Plotting Fourier transform from text file
body: <p>I have this text file that has columns of different recorded values to where the first column is of values of time and columns 2, 3, and 4, are of position x, y, and z, respectively, to where that if I were to plot time vs its position of x, y, or z, it will be shown to oscillate.</p>
  
  <p>I want to take Fourier transform of this data and plot it to where the x-axis is frequency.</p>
  
  <p>I'm have trouble following along from examples from other posts, so maybe somebody can give me advice to go in the correct direction.</p>
  
  <p>Having my text file,</p>
  
  <pre><code>with open('SampleData.txt') as f:
      data = f.read()
  data = data.split('\n')
  
  
  t = [float(row.split()[0]) for row in data]  
  x1 = [float(row.split()[1]) for row in data] 
  </code></pre>
  
  <p>Now using, the numpy function of the Fourier Transform, I have no idea where to go from there.</p>