mirror of
https://github.com/romanz/amodem.git
synced 2026-02-07 01:18:02 +08:00
plot: fix imports
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
#!/usr/bin/env python
|
||||
import pylab
|
||||
import numpy as np
|
||||
from amodem import common
|
||||
from amodem.config import Configuration
|
||||
import sys
|
||||
|
||||
|
||||
def spectrogram(t, x, Fs, NFFT=256):
|
||||
@@ -11,10 +14,6 @@ def spectrogram(t, x, Fs, NFFT=256):
|
||||
pylab.specgram(x, NFFT=NFFT, Fs=Fs, noverlap=NFFT/2,
|
||||
cmap=pylab.cm.gist_heat)
|
||||
|
||||
import sys
|
||||
from amodem import common
|
||||
from amodem.config import Configuration
|
||||
|
||||
|
||||
def main():
|
||||
config = Configuration()
|
||||
|
||||
Reference in New Issue
Block a user