Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

Commit 88c1a47

Browse files
committed
Closes #16.
1 parent 7b10223 commit 88c1a47

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

biosppy/plotting.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ def _plot_filter(b, a, sampling_rate=1000., nfreqs=512, ax=None):
6969
fig = ax.figure
7070

7171
# amplitude
72-
ax.semilogy(freqs, np.abs(resp), 'b', linewidth=MAJOR_LW)
72+
pwr = 20. * np.log10(np.abs(resp))
73+
ax.plot(freqs, pwr, 'b', linewidth=MAJOR_LW)
7374
ax.set_ylabel('Amplitude (dB)', color='b')
7475
ax.set_xlabel('Frequency (Hz)')
7576

0 commit comments

Comments
 (0)