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()
scipy plotting

There are other functions with different plot formats

plt.figure()
h, w = signal.freqz(b, a, plot=freqz_twin)
scipy plotting

Total running time of the script: (0 minutes 0.716 seconds)

Gallery generated by Sphinx-Gallery