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

Commit cac0b9f

Browse files
committed
Plot filter frequency response phase also with logarithmic scale.
1 parent 93772c7 commit cac0b9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

biosppy/plotting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def _plot_filter(b, a, sampling_rate=1000., nfreqs=4096, ax=None):
7777
# phase
7878
angles = np.unwrap(np.angle(resp))
7979
ax2 = ax.twinx()
80-
ax2.plot(freqs, angles, 'g', linewidth=MAJOR_LW)
80+
ax2.semilogx(freqs, angles, 'g', linewidth=MAJOR_LW)
8181
ax2.set_ylabel('Angle (radians)', color='g')
8282

8383
ax.grid()

0 commit comments

Comments
 (0)