Title: `rlocus` with `kvect` argument doesn't compute good limits · Issue #787 · python-control/python-control · GitHub
Open Graph Title: `rlocus` with `kvect` argument doesn't compute good limits · Issue #787 · python-control/python-control
X Title: `rlocus` with `kvect` argument doesn't compute good limits · Issue #787 · python-control/python-control
Description: Example: import control as ct g = ct.tf([1,2], [1,2,10]) kvect = ct.rlocus(g)[1] plt.figure() ct.rlocus(g, kvect=kvect); result: I'd expect these two to look the same. This is because axis limits are only calculated when argument kvect i...
Open Graph Description: Example: import control as ct g = ct.tf([1,2], [1,2,10]) kvect = ct.rlocus(g)[1] plt.figure() ct.rlocus(g, kvect=kvect); result: I'd expect these two to look the same. This is because axis limits a...
X Description: Example: import control as ct g = ct.tf([1,2], [1,2,10]) kvect = ct.rlocus(g)[1] plt.figure() ct.rlocus(g, kvect=kvect); result: I'd expect these two to look the same. This is because axis limi...
Opengraph URL: https://github.com/python-control/python-control/issues/787
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`rlocus` with `kvect` argument doesn't compute good limits","articleBody":"Example:\r\n\r\n```python\r\nimport control as ct\r\ng = ct.tf([1,2], [1,2,10])\r\nkvect = ct.rlocus(g)[1]\r\nplt.figure()\r\nct.rlocus(g, kvect=kvect);\r\n```\r\n\r\nresult:\r\n\r\n\r\n\r\n\r\n\r\nI'd expect these two to look the same.\r\n\r\nThis is because axis limits are only calculated when argument kvect is None:\r\n\r\n```python\r\n if kvect is None:\r\n start_mat = _RLFindRoots(nump, denp, [1])\r\n kvect, mymat, xlim, ylim = _default_gains(nump, denp, xlim, ylim)\r\n else:\r\n start_mat = _RLFindRoots(nump, denp, [kvect[0]])\r\n mymat = _RLFindRoots(nump, denp, kvect)\r\n mymat = _RLSortRoots(mymat)\r\n```","author":{"url":"https://github.com/roryyorke","@type":"Person","name":"roryyorke"},"datePublished":"2022-11-12T11:16:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/787/python-control/issues/787"}
| 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:964e51ab-6497-4c2c-3616-d3dd01d8edae |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8A32:354D8D:152B6F4:1CAE9F1:697978DE |
| html-safe-nonce | e875552a23b8ed11bb3d85c6fe8fdce3846edd5c6415a59fe70a72d8fcc6ead2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QTMyOjM1NEQ4RDoxNTJCNkY0OjFDQUU5RjE6Njk3OTc4REUiLCJ2aXNpdG9yX2lkIjoiNDQzNTI1ODg1Njg1MDQyMTk4MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5e773982765c2ede155cd68c0da652f0782051fd03c800d568a9a663971114ed |
| hovercard-subject-tag | issue:1446404953 |
| 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/787/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3ea99653c64589e7f444e3cc6044fbb7973c4dfa454cdb316d368c3557ac7bbf/python-control/python-control/issues/787 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3ea99653c64589e7f444e3cc6044fbb7973c4dfa454cdb316d368c3557ac7bbf/python-control/python-control/issues/787 |
| og:image:alt | Example: import control as ct g = ct.tf([1,2], [1,2,10]) kvect = ct.rlocus(g)[1] plt.figure() ct.rlocus(g, kvect=kvect); result: I'd expect these two to look the same. This is because axis limits a... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | roryyorke |
| hostname | github.com |
| expected-hostname | github.com |
| None | c049b65ec7e54cbf2521f5a560b6527714c612b0bd169188e2ea6e16f83bd5f4 |
| 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 | 87b137883e35e2766c3d0f6a257c4044f6390b83 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width