mirror of
https://github.com/romanz/amodem.git
synced 2026-04-21 05:36:42 +08:00
plot: fix imports
This commit is contained in:
@@ -1,6 +1,9 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
import pylab
|
import pylab
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
from amodem import common
|
||||||
|
from amodem.config import Configuration
|
||||||
|
import sys
|
||||||
|
|
||||||
|
|
||||||
def spectrogram(t, x, Fs, NFFT=256):
|
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,
|
pylab.specgram(x, NFFT=NFFT, Fs=Fs, noverlap=NFFT/2,
|
||||||
cmap=pylab.cm.gist_heat)
|
cmap=pylab.cm.gist_heat)
|
||||||
|
|
||||||
import sys
|
|
||||||
from amodem import common
|
|
||||||
from amodem.config import Configuration
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
config = Configuration()
|
config = Configuration()
|
||||||
|
|||||||
Reference in New Issue
Block a user