Only plot noise if noise_samples > 0
This commit is contained in:
parent
2b93a5f1bc
commit
4d8d419d31
|
@ -140,6 +140,7 @@ def plot_constellation(
|
|||
)
|
||||
|
||||
# Plot channel noise
|
||||
if noise_samples > 0:
|
||||
noisy_vectors = channel(constellation.repeat(noise_samples, 1))
|
||||
|
||||
ax.scatter(
|
||||
|
@ -149,6 +150,6 @@ def plot_constellation(
|
|||
c=list(range(order)) * noise_samples,
|
||||
cmap=color_map,
|
||||
norm=color_norm,
|
||||
alpha=0.7,
|
||||
alpha=0.3,
|
||||
zorder=8
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue