13 lines
187 B
Python
13 lines
187 B
Python
|
#!/bin/env python3
|
||
|
|
||
|
import numpy as np
|
||
|
import matplotlib.pyplot as plt
|
||
|
|
||
|
data = []
|
||
|
|
||
|
with open("test", "rb") as f:
|
||
|
data = np.fromfile(f, dtype=np.int16)
|
||
|
|
||
|
plt.psd(data, Fs=1e6)
|
||
|
plt.show()
|