Title: Matplotlib 3.7 breaks nyquist_plot() · Issue #864 · python-control/python-control · GitHub
Open Graph Title: Matplotlib 3.7 breaks nyquist_plot() · Issue #864 · python-control/python-control
X Title: Matplotlib 3.7 breaks nyquist_plot() · Issue #864 · python-control/python-control
Description: >>> nyquist(tf([1],[1,1])) Traceback (most recent call last): File "/home/henklaak/Software/python-control/examples/secord-matlab.py", line 8, in
Open Graph Description: >>> nyquist(tf([1],[1,1])) Traceback (most recent call last): File "/home/henklaak/Software/python-control/examples/secord-matlab.py", line 8, in
X Description: >>> nyquist(tf([1],[1,1])) Traceback (most recent call last): File "/home/henklaak/Software/python-control/examples/secord-matlab.py", line 8, in <module> nyquist(tf([1],[1...
Opengraph URL: https://github.com/python-control/python-control/issues/864
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Matplotlib 3.7 breaks nyquist_plot()","articleBody":"```\r\n\u003e\u003e\u003e nyquist(tf([1],[1,1]))\r\n\r\n\r\nTraceback (most recent call last):\r\n File \"/home/henklaak/Software/python-control/examples/secord-matlab.py\", line 8, in \u003cmodule\u003e\r\n nyquist(tf([1],[1,1]))\r\n File \"/home/henklaak/Software/python-control/control/matlab/wrappers.py\", line 109, in nyquist\r\n _, contour = nyquist_plot(syslist, omega, *args, **kwargs)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/home/henklaak/Software/python-control/control/freqplot.py\", line 1027, in nyquist_plot\r\n plt.plot(\r\n File \"/home/henklaak/anaconda3/envs/bla/lib/python3.11/site-packages/matplotlib/pyplot.py\", line 2785, in plot\r\n return gca().plot(\r\n ^^^^^^^^^^^\r\n File \"/home/henklaak/anaconda3/envs/bla/lib/python3.11/site-packages/matplotlib/axes/_axes.py\", line 1690, in plot\r\n self.add_line(line)\r\n File \"/home/henklaak/anaconda3/envs/bla/lib/python3.11/site-packages/matplotlib/axes/_base.py\", line 2304, in add_line\r\n self._update_line_limits(line)\r\n File \"/home/henklaak/anaconda3/envs/bla/lib/python3.11/site-packages/matplotlib/axes/_base.py\", line 2327, in _update_line_limits\r\n path = line.get_path()\r\n ^^^^^^^^^^^^^^^\r\n File \"/home/henklaak/anaconda3/envs/bla/lib/python3.11/site-packages/matplotlib/lines.py\", line 1029, in get_path\r\n self.recache()\r\n File \"/home/henklaak/anaconda3/envs/bla/lib/python3.11/site-packages/matplotlib/lines.py\", line 681, in recache\r\n self._x_filled[nanmask] = np.interp(\r\n ^^^^^^^^^^\r\n File \"\u003c__array_function__ internals\u003e\", line 200, in interp\r\n File \"/home/henklaak/anaconda3/envs/bla/lib/python3.11/site-packages/numpy/lib/function_base.py\", line 1595, in interp\r\n return interp_func(x, xp, fp, left, right)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\nValueError: array of sample points is empty\r\n```\r\n","author":{"url":"https://github.com/henklaak","@type":"Person","name":"henklaak"},"datePublished":"2023-02-17T14:38:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/864/python-control/issues/864"}
| 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:c76a245e-0855-3558-e2f9-3c29397f242f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B85E:22DBCB:34A61F9:47D0E82:6979D5CA |
| html-safe-nonce | bf3014cf923b007c0547efa1021405498924228ad0a9bff200f7300100fe93f6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODVFOjIyREJDQjozNEE2MUY5OjQ3RDBFODI6Njk3OUQ1Q0EiLCJ2aXNpdG9yX2lkIjoiMzE5NjM4MTE3NTMxNjMzODEyMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d2c2d77a5aece55d0908d3337ff6e2fd36405a3ef2cb433c89944e54f5972866 |
| hovercard-subject-tag | issue:1589465328 |
| 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/864/issue_layout |
| twitter:image | https://opengraph.githubassets.com/490cb2488b9ed5ad3b894106b52622bbbdbeccc998c076a4f53ae365e1231c5b/python-control/python-control/issues/864 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/490cb2488b9ed5ad3b894106b52622bbbdbeccc998c076a4f53ae365e1231c5b/python-control/python-control/issues/864 |
| og:image:alt | >>> nyquist(tf([1],[1,1])) Traceback (most recent call last): File "/home/henklaak/Software/python-control/examples/secord-matlab.py", line 8, in |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | henklaak |
| 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