sdr.plot.constellation(x_hat: ArrayLike, heatmap: bool = False, limits: tuple[float, float] | None = None, **kwargs)

Plots the constellation of the complex symbols \(\hat{x}[k]\).

Parameters:
x_hat: ArrayLike

The complex symbols \(\hat{x}[k]\).

heatmap: bool = False

If True, a heatmap is plotted instead of a scatter plot.

limits: tuple[float, float] | None = None

The axis limits, which apply to both the x- and y-axis. If None, the axis limits are set to 10% larger than the maximum value.

**kwargs

Additional keyword arguments to pass to matplotlib.pyplot.scatter() (heatmap=False) or matplotlib.pyplot.hist2d() (heatmap=True).