Plotting¶
Configuration¶
- sdr.plot.use_style()
Applies
sdr
’s defaultmatplotlib
rcParams.
Time-domain¶
- sdr.plot.time_domain(x: ArrayLike, ...)
Plots a time-domain signal \(x[n]\).
-
sdr.plot.raster(x: ArrayLike, length: int | None =
None
, ...) Plots a raster of the time-domain signal \(x[n]\).
Frequency-domain¶
Spectral estimation¶
-
sdr.plot.periodogram(x: ArrayLike, sample_rate: float =
1.0
, ...) Plots the estimated power spectral density \(P_{xx}\) of a time-domain signal \(x[n]\) using Welch’s method.
-
sdr.plot.spectrogram(x: ArrayLike, sample_rate: float =
1.0
, ...) Plots the spectrogram of a time-domain signal \(x[n]\) using Welch’s method.
Modulation¶
-
sdr.plot.constellation(x_hat: ArrayLike, heatmap: bool =
False
, ...) Plots the constellation of the complex symbols \(\hat{x}[k]\).
- sdr.plot.symbol_map(modulation: LinearModulation | ArrayLike, ...)
Plots the symbol map of the complex symbols \(\hat{x}[k]\).
-
sdr.plot.eye(x: ArrayLike, sps: int, span: int =
2
, ...) Plots the eye diagram of the baseband modulated signal \(x[n]\).
- sdr.plot.ber(ebn0: ArrayLike, ber: ArrayLike, **kwargs)
Plots the bit error rate (BER) as a function of \(E_b/N_0\).
- sdr.plot.ser(esn0: ArrayLike, ser: ArrayLike, **kwargs)
Plots the symbol error rate (SER) as a function of \(E_s/N_0\).
Filter analysis¶
- sdr.plot.impulse_response(filter, ...)
Plots the impulse response \(h[n]\) of a filter.
- sdr.plot.step_response(filter, ...)
Plots the step response \(s[n]\) of a filter.
- sdr.plot.zeros_poles(filter, ...)
Plots the zeros and poles of the filter.
- sdr.plot.magnitude_response(filter, ...)
Plots the magnitude response \(|H(\omega)|^2\) of the filter.
- sdr.plot.phase_response(filter, ...)
Plots the phase response \(\angle H(\omega)\) of the filter.
- sdr.plot.phase_delay(filter, ...)
Plots the phase delay \(\tau_{\phi}(\omega)\) of the filter.
- sdr.plot.group_delay(filter, ...)
Plots the group delay \(\tau_g(\omega)\) of the IIR filter.
- sdr.plot.filter(filter, ...)
Plots the magnitude response \(|H(\omega)|^2\), impulse response \(h[n]\), step response \(s[n]\), and zeros and poles of the filter.