Skip to content

Instantly share code, notes, and snippets.

@chasinglogic
Created December 24, 2018 03:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chasinglogic/ae833262f39879285a9ab713ac6a1881 to your computer and use it in GitHub Desktop.
Save chasinglogic/ae833262f39879285a9ab713ac6a1881 to your computer and use it in GitHub Desktop.
import matplotlib
import matplotlib.pyplot
import scipy
import scipy.signal
from numpy import pi
[b,a] = scipy.signal.butter(2,1,analog=1)
zp = scipy.signal.freqz(b, a)
matplotlib.pyplot.plot(zp)
matplotlib.pyplot.xlim([0, pi])
matplotlib.pyplot.ylim([0, 2])
matplotlib.pyplot.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment