Fix constellation symbols' plot

This commit is contained in:
Roman Zeyde
2014-08-01 10:05:39 +03:00
parent 8a669feb91
commit f3b023d2ef
2 changed files with 6 additions and 6 deletions

View File

@@ -2,14 +2,12 @@
import pylab
import numpy as np
import sigproc
def constellation(y, title):
def constellation(y, symbols, title):
theta = np.linspace(0, 2*np.pi, 1000)
pylab.plot(y.real, y.imag, '.')
pylab.plot(np.cos(theta), np.sin(theta), ':')
points = np.array(sigproc.modulator.symbols)
points = np.array(symbols)
pylab.plot(points.real, points.imag, '+')
pylab.grid('on')
pylab.axis('equal')