recv: constellation should apply np.array()

This commit is contained in:
Roman Zeyde
2014-08-10 18:08:21 +03:00
parent 55a7c31447
commit 8a156c7e54

View File

@@ -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)