mirror of
https://github.com/romanz/amodem.git
synced 2026-03-16 22:46:01 +08:00
recv: fix subplot on 1x2 figure
This commit is contained in:
@@ -36,11 +36,11 @@ class Receiver(object):
|
||||
S = S[:, self.carrier_index] * gain
|
||||
sliced = np.round(np.abs(S))
|
||||
self.plt.figure()
|
||||
self.plt.subplot(121)
|
||||
self.plt.subplot(1, 2, 1)
|
||||
self._constellation(S, sliced, 'Prefix')
|
||||
|
||||
bits = np.array(sliced, dtype=int)
|
||||
self.plt.subplot(122)
|
||||
self.plt.subplot(1, 2, 2)
|
||||
self.plt.plot(np.abs(S))
|
||||
self.plt.plot(equalizer.prefix)
|
||||
if any(bits != equalizer.prefix):
|
||||
|
||||
Reference in New Issue
Block a user