Title: Allow the initial phase of a bode plot to be specified · Issue #388 · python-control/python-control · GitHub
Open Graph Title: Allow the initial phase of a bode plot to be specified · Issue #388 · python-control/python-control
X Title: Allow the initial phase of a bode plot to be specified · Issue #388 · python-control/python-control
Description: The output of the bode_plot function is bounded to between -180 degrees and 180 degrees and doesn't account for conditions when the phase should leave these ranges. For example a phase angle of -270 degrees will be represented as 90 degr...
Open Graph Description: The output of the bode_plot function is bounded to between -180 degrees and 180 degrees and doesn't account for conditions when the phase should leave these ranges. For example a phase angle of -27...
X Description: The output of the bode_plot function is bounded to between -180 degrees and 180 degrees and doesn't account for conditions when the phase should leave these ranges. For example a phase angle of...
Opengraph URL: https://github.com/python-control/python-control/issues/388
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Allow the initial phase of a bode plot to be specified","articleBody":"The output of the `bode_plot` function is bounded to between -180 degrees and 180 degrees and doesn't account for conditions when the phase should leave these ranges. For example a phase angle of -270 degrees will be represented as 90 degrees on the bode plot. To illustrate this, I've got a simple example below:\r\n\r\n```import numpy as np\r\nimport control as ct\r\n\r\nm = 2\r\nk = 100_000\r\nWci = 2*np.pi*500\r\n\r\nG1 = ct.TransferFunction([1],[m, 0, -k])\r\nG2 = ct.TransferFunction([1], [1/Wci, 1])\r\nG3 = G1*G2\r\n\r\nct.bode_plot([G1, G2, G3], dB = True, Hz = True)\r\n```\r\n\r\n\r\n\r\n-G1 (blue curve) contains two poles and a DC gain and has a phase angle of -180 degrees.\r\n\r\n-G2 (orange curve) is a simple pole with no DC gain and thus has a phase that starts at 0 degrees and goes to -90 degrees\r\n\r\n-G3 (green curve) is the product of the two transfer functions which on the bode plot corresponds to adding of the curves. We should see the green curve start at a phase of -180 degrees and go to -270 degrees but it does not do this because of the way that the phase angle is computed.\r\n","author":{"url":"https://github.com/Nick-Hemenway","@type":"Person","name":"Nick-Hemenway"},"datePublished":"2020-04-03T18:12:19.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/388/python-control/issues/388"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ad88c23f-3481-de28-b078-f274919d94c4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E868:1C9C23:331B74:470F20:697B3E3F |
| html-safe-nonce | 3059622b6b120b0cf1eea00e283fd8bb1794dd9bbeaee80b16ef8082bef482e0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODY4OjFDOUMyMzozMzFCNzQ6NDcwRjIwOjY5N0IzRTNGIiwidmlzaXRvcl9pZCI6IjQ0NTE0MDQ0NTQ5NTk5ODgyODciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c7bae3b0aa996894a153c1ef4286929e93c2a3dde7c046d617399def00f00499 |
| hovercard-subject-tag | issue:593555203 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-control/python-control/388/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dbfcba12a7482f66c957366d864ea04e42dbe092ac88ad65ecf29a815d511840/python-control/python-control/issues/388 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dbfcba12a7482f66c957366d864ea04e42dbe092ac88ad65ecf29a815d511840/python-control/python-control/issues/388 |
| og:image:alt | The output of the bode_plot function is bounded to between -180 degrees and 180 degrees and doesn't account for conditions when the phase should leave these ranges. For example a phase angle of -27... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Nick-Hemenway |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6fe64d94889230be19a900846cfc91707e7dd4206878d6c208922b46a6b0735d |
| turbo-cache-control | no-preview |
| go-import | github.com/python-control/python-control git https://github.com/python-control/python-control.git |
| octolytics-dimension-user_id | 2285872 |
| octolytics-dimension-user_login | python-control |
| octolytics-dimension-repository_id | 22791752 |
| octolytics-dimension-repository_nwo | python-control/python-control |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 22791752 |
| octolytics-dimension-repository_network_root_nwo | python-control/python-control |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 15736a47b83581130a149aa1b928696bea06adde |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width