pyFDN.plot_edc#
- pyFDN.plot_edc(*irs, fs=None, labels=None, db=True, normalize=False, dynamic_range=100.0, title='Energy decay curve', max_points=10000)[source]#
Plot the energy decay curve (EDC) of one or more impulse responses.
The EDC is the backward energy integral (
pyFDN.edc()); by default it is shown in dB (pyFDN.sq_to_db()). Dense traces are downsampled with LTTB (downsampled_scatter()) before plotting.- Parameters:
*irs (
ArrayLike) – One or more 1-D impulse responses, plotted as overlaid curves.fs (
float|None) – Sample rate in Hz. If given, the time axis is in seconds; otherwise in samples.labels (
Sequence[str] |None) – One legend label per impulse response.db (
bool) – Plot the decay in dB. Default True.normalize (
bool) – Normalize each curve by its initial (total) energy so it starts at 0 dB. Default False.dynamic_range (
float|None) – When plotting in dB, limit the y-axis todynamic_rangedB below the peak across all curves (default 100, i.e. a floor at peak - 100 dB). This keeps the late decay from blowing out the axis once the tail reaches silence (-infdB). Use None for auto scaling. Ignored whendbis False.max_points (
int) – Maximum number of points per trace after downsampling. Default 10000.
- Returns:
Call
.show()to display.- Return type: