Title: Nyquist plot rescaling is confusing · Issue #1143 · python-control/python-control · GitHub
Open Graph Title: Nyquist plot rescaling is confusing · Issue #1143 · python-control/python-control
X Title: Nyquist plot rescaling is confusing · Issue #1143 · python-control/python-control
Description: Hi - not sure I fully understand how the indentation around an imaginary axis pole is being done for the nyquist plot. Looking at freqplot.py L 1449:1555 I see: # Add points for half/quarter circle around pole frequency # (these will get...
Open Graph Description: Hi - not sure I fully understand how the indentation around an imaginary axis pole is being done for the nyquist plot. Looking at freqplot.py L 1449:1555 I see: # Add points for half/quarter circle...
X Description: Hi - not sure I fully understand how the indentation around an imaginary axis pole is being done for the nyquist plot. Looking at freqplot.py L 1449:1555 I see: # Add points for half/quarter circle...
Opengraph URL: https://github.com/python-control/python-control/issues/1143
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Nyquist plot rescaling is confusing","articleBody":"Hi - not sure I fully understand how the indentation around an imaginary axis pole is being done for the nyquist plot.\n\nLooking at freqplot.py L 1449:1555 I see:\n```\n# Add points for half/quarter circle around pole frequency\n# (these will get indented left or right below)\nsplane_contour = np.concatenate((\n splane_contour[0:first_point+1],\n (1j * np.linspace(\n start_freq, p.imag + indent_radius, indent_points)),\n splane_contour[last_point:]))\n\nbut this seems to make all the added points imaginary - what I would have expected to see would be a quarter/half circle with\nreal and imaginary parts -- something like:\n\n if indent_direction == 'right':\n direction = 1\n else:\n direction = -1\n angle_start = [0 if start_freq == 0 else -np.pi/2][0]\n angle_end = np.pi/2\n\n splane_contour = np.concatenate((\n splane_contour[0:first_point+1],\n p + direction*indent_radius*np.exp(direction*1j * np.linspace(\n angle_start, angle_end, indent_points)),\n splane_contour[last_point:]))\n```\nwith the phase being from -pi/2:pi/2 (unless at origin) with a direction determined by the indent direction \nand np.exp(...) creating the small complex valued quarter/half circle centered at pole p (on imag axis)\n\nthis change seems to break the encirclement math that follows in the code, so I cannot provide a working example","author":{"url":"https://github.com/JonHowMIT","@type":"Person","name":"JonHowMIT"},"datePublished":"2025-03-24T13:24:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/1143/python-control/issues/1143"}
| 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:6ff826d4-5346-37e6-3a83-2e1dde9ab1dd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9922:26E572:135B7A5:1BD916B:697A3863 |
| html-safe-nonce | 98db92a609c6eee46e54105229f054446c30a0427bfebf5ca123dfe33c9cb520 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OTIyOjI2RTU3MjoxMzVCN0E1OjFCRDkxNkI6Njk3QTM4NjMiLCJ2aXNpdG9yX2lkIjoiNDA3NDM1Njg4NjcyNjEyOTc2MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f63349175655cbd6a235c44f07aacf287903331bbba8f23f1bd6916d89af9bbd |
| hovercard-subject-tag | issue:2943261990 |
| 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/1143/issue_layout |
| twitter:image | https://opengraph.githubassets.com/787a0bbb39ce2a2bf16b73dc1ef7370c9a627b2c0334a43ab065c1d0a15f5aa6/python-control/python-control/issues/1143 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/787a0bbb39ce2a2bf16b73dc1ef7370c9a627b2c0334a43ab065c1d0a15f5aa6/python-control/python-control/issues/1143 |
| og:image:alt | Hi - not sure I fully understand how the indentation around an imaginary axis pole is being done for the nyquist plot. Looking at freqplot.py L 1449:1555 I see: # Add points for half/quarter circle... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JonHowMIT |
| hostname | github.com |
| expected-hostname | github.com |
| None | af6de804ceb83ad30bb9b348cdeaccaa30cdcb566762d5e74e21e2bad88885d0 |
| 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 | 2d980605f0959039ddebcbcf522b072508302977 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width