import matplotlib.pyplot as plt
import numpy as np
X_r = []
X_i = []
with open('fft_out.txt', 'r') as f:
    for _ in range(1024):
        a = int(f.readline().replace(' ', '').replace('\n', ''))
        X_r.append(a)
    for _ in range(1024):
        a = int(f.readline().replace(' ', '').replace('\n', ''))
        X_i.append(a)
X_r = np.array(X_r)
X_i = np.array(X_i)
X = np.abs(X_r) + np.abs(X_i)
plt.plot(X[:512])
plt.show()

03f5fe3c6e0db09447384b6b5287a0e7cf6f9144
<mask token>

<mask token>
with open('fft_out.txt', 'r') as f:
    for _ in range(1024):
        a = int(f.readline().replace(' ', '').replace('\n', ''))
        X_r.append(a)
    for _ in range(1024):
        a = int(f.readline().replace(' ', '').replace('\n', ''))
        X_i.append(a)
<mask token>
plt.plot(X[:512])
plt.show()

<mask token>
X_r = []
X_i = []
with open('fft_out.txt', 'r') as f:
    for _ in range(1024):
        a = int(f.readline().replace(' ', '').replace('\n', ''))
        X_r.append(a)
    for _ in range(1024):
        a = int(f.readline().replace(' ', '').replace('\n', ''))
        X_i.append(a)
X_r = np.array(X_r)
X_i = np.array(X_i)
X = np.abs(X_r) + np.abs(X_i)
plt.plot(X[:512])
plt.show()

import matplotlib.pyplot as plt
import numpy as np
X_r = []
X_i = []
with open('fft_out.txt', 'r') as f:
    for _ in range(1024):
        a = int(f.readline().replace(' ', '').replace('\n', ''))
        X_r.append(a)
    for _ in range(1024):
        a = int(f.readline().replace(' ', '').replace('\n', ''))
        X_i.append(a)
X_r = np.array(X_r)
X_i = np.array(X_i)
X = np.abs(X_r) + np.abs(X_i)
plt.plot(X[:512])
plt.show()
