MAKE A MEME View Large Image Nyquist example.svg The Nyquist Plot for a sample function <math>G s \frac 1 s 2+s+1 </math> that can be converted to frequency by replacing <math>s</math> with <math>j\omega</math> imaginary frequency and <math>-\infty\leq\omega\leq\...
View Original:Nyquist example.svg (354x342)
Download: Original    Medium    Small Thumb
Courtesy of:commons.wikimedia.org More Like This
Keywords: Nyquist example.svg The Nyquist Plot for a sample function <math>G s \frac 1 s 2+s+1 </math> that can be converted to frequency by replacing <math>s</math> with <math>j\omega</math> imaginary frequency and <math>-\infty\leq\omega\leq\infty</math> Created using Python and matplotlib own 2006-03-27 Utkarsh Upadhyay --Krishnavedala <span class signature-talk >talk</span> 20 21 3 June 2011 UTC python version Public Domain validSVG Source Code <syntaxhighlight lang python > from numpy import from matplotlib pyplot import def nyquist w compute the complex Nyquist response s complex 0 w return 1/ s 2+s+1 fig figure figsize 5 5 ax fig add_subplot 111 ax grid True t N linspace 0 5 pi 200 5 pi is approx to infinity for i in t compute the complex response for +ve omega N append N nyquist i ax plot real N imag N label r 0\leq\omega\leq\infty t N linspace -5 pi 0 200 for i in t compute the complex response for -ve omega N append N nyquist i ax plot real N imag N label r -\infty\leq\omega\leq 0 ax legend frameon False setp ax get_legend get_texts fontsize 'small' ax set_xlabel r \mathrm Re \leftG\left \omega\right \right ax set_ylabel r \mathrm Im \leftG\left \omega\right \right ax text 0 6 -1 25 r G s \frac 1 s 2+s+1 \ fontsize 15 fig show fig savefig Nyquist example svg bbox_inches tight \ pad_inches 15 </syntaxhighlight> cob Created with Matplotlib Images with Python source code Nyquist plots Cybernetics
Terms of Use   Search of the Day