Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix legend of InterpolateSpectrum's show function #457

Merged
merged 1 commit into from
Apr 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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