import matplotlib.pyplot as plt
from sk_dsp_comm import digitalcom as dc
x,b, data = dc.nrz_bits(1000,10,'rc')
#
# Add some noise so points are now scattered about +/-1.
#
y = dc.cpx_awgn(x,20,10)
yI,yQ = dc.scatter(y,10,60)
plt.plot(yI,yQ,'.')
plt.grid()
plt.xlabel('In-Phase')
plt.ylabel('Quadrature')
plt.axis('equal')
plt.show()
