mirror of
https://github.com/romanz/amodem.git
synced 2026-02-07 01:18:02 +08:00
recv: constellation should apply np.array()
This commit is contained in:
@@ -277,6 +277,7 @@ def main(args):
|
||||
|
||||
def constellation(y, symbols, title):
|
||||
theta = np.linspace(0, 2*np.pi, 1000)
|
||||
y = np.array(y)
|
||||
pylab.plot(y.real, y.imag, '.:')
|
||||
pylab.plot(np.cos(theta), np.sin(theta), ':')
|
||||
points = np.array(symbols)
|
||||
|
||||
Reference in New Issue
Block a user