Title: [Bug]: Second and subsequent calls to plt.polar() return an Axis object and do not plot · Issue #21113 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: Second and subsequent calls to plt.polar() return an Axis object and do not plot · Issue #21113 · matplotlib/matplotlib
X Title: [Bug]: Second and subsequent calls to plt.polar() return an Axis object and do not plot · Issue #21113 · matplotlib/matplotlib
Description: Bug summary When plt.polar() is called while the current axes are a PolarAxes object, the call just returns the axes again without plotting the new data. The code for polar() in pyplot.py is easily fixed by changing "return ax" to "retur...
Open Graph Description: Bug summary When plt.polar() is called while the current axes are a PolarAxes object, the call just returns the axes again without plotting the new data. The code for polar() in pyplot.py is easily...
X Description: Bug summary When plt.polar() is called while the current axes are a PolarAxes object, the call just returns the axes again without plotting the new data. The code for polar() in pyplot.py is easily...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/21113
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: Second and subsequent calls to plt.polar() return an Axis object and do not plot","articleBody":"### Bug summary\r\n\r\nWhen plt.polar() is called while the current axes are a PolarAxes object, the call just returns the axes again without plotting the new data.\r\n\r\nThe code for polar() in pyplot.py is easily fixed by changing \"return ax\" to \"return ax.plot(*args, **kwargs)\".\r\n\r\n### Code for reproduction\r\n\r\n```python\r\nimport matplotlib.pyplot as plt\r\n\r\nh1 = plt.polar([0],[1],'ro')\r\n\r\nh2 = plt.polar([1.57],[.5], 'bo')\r\n\r\nplt.show()\r\n```\r\n\r\n\r\n### Actual outcome\r\n\r\nOnly the first point is plotted. Note that h1 is a list of length 1 of Line2D objects, while h2 is a PolarAxesSubplot object.\r\n\r\n### Expected outcome\r\n\r\nBoth points should be plotted. Both h1 and h2 should be lists of length 1 of Line2D objects.\r\n\r\n### Operating system\r\n\r\nWindows\r\n\r\n### Matplotlib Version\r\n\r\n3.4.3\r\n\r\n### Matplotlib Backend\r\n\r\n_No response_\r\n\r\n### Python version\r\n\r\n3.9\r\n\r\n### Jupyter version\r\n\r\n_No response_\r\n\r\n### Other libraries\r\n\r\n_No response_\r\n\r\n### Installation\r\n\r\nconda\r\n\r\n### Conda channel\r\n\r\n_No response_","author":{"url":"https://github.com/beckja","@type":"Person","name":"beckja"},"datePublished":"2021-09-18T18:53:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/21113/matplotlib/issues/21113"}
| 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:8a0c119d-5e3c-8a0b-3134-b57b8d3a143d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B740:176010:2ACA13:38DF98:6A52EAB5 |
| html-safe-nonce | 6949fbf992d0a73141a456da79fa519b7660a9ecddea360ce56683e4e8c6dc14 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNzQwOjE3NjAxMDoyQUNBMTM6MzhERjk4OjZBNTJFQUI1IiwidmlzaXRvcl9pZCI6IjEwMTg3MjgwNjY0MzA3MjQ3ODkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a8d4d639055ae2ce81b265fdcfd17900a1c6676152e14bc8adb6895e71af502f |
| hovercard-subject-tag | issue:1000107274 |
| 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/matplotlib/matplotlib/21113/issue_layout |
| twitter:image | https://opengraph.githubassets.com/975041076ee82d7bc39185cfa58065b6b24488b7f2d78842a2d1a9c4870ede1f/matplotlib/matplotlib/issues/21113 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/975041076ee82d7bc39185cfa58065b6b24488b7f2d78842a2d1a9c4870ede1f/matplotlib/matplotlib/issues/21113 |
| og:image:alt | Bug summary When plt.polar() is called while the current axes are a PolarAxes object, the call just returns the axes again without plotting the new data. The code for polar() in pyplot.py is easily... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | beckja |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width