Skip to content

Commit

Permalink
Merge pull request #457 from pyfar/bugfix/legend_of_interpolate_spectrum
Browse files Browse the repository at this point in the history
Fix legend of InterpolateSpectrum's show function
  • Loading branch information
mberz committed Apr 21, 2023
2 parents 67782f1 + bc57cd0 commit c40dc08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyfar/dsp/interpolation.py
Original file line number Diff line number Diff line change
Expand Up @@ -892,9 +892,9 @@ def __call__(self, n_samples, sampling_rate, show=False):
ax=ax[0, 1], c='r', ls='', marker='.')
ax[0, 1].set_xlim(0, sampling_rate/2)
# frequency plot (log x-axis)
pf.plot.freq(signal, dB=False, ax=ax[1, 1], label='input')
pf.plot.freq(signal, dB=False, ax=ax[1, 1], label='output')
pf.plot.freq(self._input, dB=False, ax=ax[1, 1],
c='r', ls='', marker='.', label='output')
c='r', ls='', marker='.', label='intput')
min_freq = np.min([sampling_rate / n_samples,
self._input.frequencies[0]])
ax[1, 1].set_xlim(min_freq, sampling_rate/2)
Expand Down

0 comments on commit c40dc08

Please sign in to comment.