mirror of
https://github.com/romanz/amodem.git
synced 2026-03-30 23:57:54 +08:00
Fix constellation symbols' plot
This commit is contained in:
6
show.py
6
show.py
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user