# Start a BodePlot at -180 degree phase?

**URL:** <https://community.wolfram.com/t/start-a-bodeplot-at-180-degree-phase/9911>\
**Category:** Questions\
**Tags:** graphics-and-visualization\
**Created:** [January 20, 2017, 7:30pm UTC](https://community.wolfram.com/t/start-a-bodeplot-at-180-degree-phase/9911 "2017-01-20T19:30:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![giovanniferdina](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/giovanniferdina/32/23147_2.png) [@giovanniferdina](https://community.wolfram.com/u/giovanniferdina)\
**Post date:** [January 20, 2017, 7:30pm UTC](https://community.wolfram.com/t/start-a-bodeplot-at-180-degree-phase/9911/1 "2017-01-20T19:30:05Z")

</div>

Why when I plot diagram of Bode G(s)=4 (s-20)/(s (s+0.8)), it does not recognize that the constant gain is negative and should be started from -180 degree phase, while Methematica starts to + 0 Degree ? There is a problem in PhasePlot.  
Anyone can verify,please? 🙂

 ![ImmagineBode.jpg](https://global.discourse-cdn.com/wolfram/original/3X/b/e/be02c639ddde19499b69f6064530b5c1d3095a03.jpeg)

---

<div class="post-metadata">

**Author:** ![subat](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/subat/32/32564_2.png) [@subat](https://community.wolfram.com/u/subat)\
**Post date:** [January 27, 2017, 2:51pm UTC](https://community.wolfram.com/t/start-a-bodeplot-at-180-degree-phase/9911/2 "2017-01-27T14:51:00Z")

</div>

At low frequencies the phase is Arg[-20]/Degree-90 = 90 which is what is seen on the BodePlot.

You may desire that the phase of -20 be considered as -180 degrees instead. In that case just tweak the PhaseRange .

> BodePlot[(4 (s - 20))/(s (s + 0.8)), PlotLayout → “Phase”,  
> PhaseRange → {-((3 [Pi])/2) - 2 [Pi], -((3 [Pi])/2)}]

 ![ScreenShot2017-01-27at8.48.13AM.png](https://global.discourse-cdn.com/wolfram/original/3X/4/e/4e7f40bc1a338e0aabaf9f441e44620ef15ab924.png)

---

<div class="post-metadata">

**Author:** ![iamhuzhe](https://avatars.discourse-cdn.com/v4/letter/i/cab0a1/32.png) [@iamhuzhe](https://community.wolfram.com/u/iamhuzhe)\
**Post date:** [January 30, 2017, 5:18pm UTC](https://community.wolfram.com/t/start-a-bodeplot-at-180-degree-phase/9911/3 "2017-01-30T17:18:10Z")

</div>

I can verify that BodePlot gives the correct answer. You can plot the function yourself with LogLogPlot, and LogLinearPlot as follows:  
f[x\_]:=Abs[4(s-20)/(s (s+0.8))/.s-\>I x]  
g[x\_]:=Arg[4(s-20)/(s (s+0.8))/.s-\>I x]  
LogLogPlot[f[x],{x,0.001,10000}]  
LogLinearPlot[180/[Pi] g[x],{x,0.1,10000}]

If you have an electrical engineering background, I recommend you reorder the terms as zeros, and poles form. You expression becomes -100 1/s (1-s/20)/(1 + s/0.8)

Let’s look at the magnitude of the frequency response first. 1/s gives 20db/dec drop. then you hit a pole at 0.8. now you have 40db/dec drop. then you hit a right-half plane zero. so it bends backwards, returning to 20db/dec drop again.

You can see two knee points at 0.8 and 20.

Now about the phase. a normal 1/s will give you -90 constant phase. but the term is -1/s. so it flips. to become a +90 phase lead. then around the pole (+0.8), you drop 90 degree at -45deg/dec. so you reach 0 degree. then you hit a right-plane zero, which drops you another 90 degree to -90 degree.

So the BodePlot is correct.
