import pyfar as pf
import matplotlib.pyplot as plt
signal = pf.signals.impulse(128, 64, sampling_rate=48000)
resampled_time = pf.dsp.resample(
    signal, 96000, match_amplitude = "time")
resampled_freq = pf.dsp.resample(
    signal, 96000, match_amplitude = "freq")
pf.plot.time_freq(signal, label="original", unit='ms')
pf.plot.time_freq(resampled_freq, dashes=[2, 3], unit='ms',
                  label="resampled (freq. domain matched)")
ax = pf.plot.time_freq(resampled_time, ls=":", unit='ms',
                  label="resampled (time domain matched)", c='y')
ax[0].set_xlim(1.2,1.46)
plt.legend()
