Note
Go to the end to download the full example code
scipyplot
example#
This example illustrates how the mplsignal.scipyplot
module provides functions
to be used for the plot argument to, e.g., scipy.signal.freqz()
.
import matplotlib.pyplot as plt
from mplsignal.scipyplot import freqz, freqz_twin
from scipy import signal
b, a = signal.ellip(7, 1, 60, 0.4)
h, w = signal.freqz(b, a, plot=freqz)
plt.show()
There are other functions with different plot formats
plt.figure()
h, w = signal.freqz(b, a, plot=freqz_twin)
Total running time of the script: (0 minutes 0.716 seconds)