Title: [Bug]: Setting figure for polar axes breaks the polar coordinates · Issue #31135 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: Setting figure for polar axes breaks the polar coordinates · Issue #31135 · matplotlib/matplotlib
X Title: [Bug]: Setting figure for polar axes breaks the polar coordinates · Issue #31135 · matplotlib/matplotlib
Description: Bug summary Setting the figure of the polar axes breaks the polar coordinates. This does not happen for the default axes. Code for reproduction import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(projection='polar') a...
Open Graph Description: Bug summary Setting the figure of the polar axes breaks the polar coordinates. This does not happen for the default axes. Code for reproduction import matplotlib.pyplot as plt fig = plt.figure() ax...
X Description: Bug summary Setting the figure of the polar axes breaks the polar coordinates. This does not happen for the default axes. Code for reproduction import matplotlib.pyplot as plt fig = plt.figure() ax...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/31135
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: Setting figure for polar axes breaks the polar coordinates","articleBody":"### Bug summary\n\nSetting the figure of the polar axes breaks the polar coordinates. This does not happen for the default axes.\n\n### Code for reproduction\n\n```Python\nimport matplotlib.pyplot as plt\nfig = plt.figure()\nax = fig.add_subplot(projection='polar')\nax.set_figure(fig)\n```\n\n### Actual outcome\n\n\u003cimg width=\"427\" height=\"389\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/5328a4e7-e405-4a22-93ff-5fae02de3af6\" /\u003e\n\n### Expected outcome\n\n\u003cimg width=\"453\" height=\"442\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/c1e6791e-98b2-4f76-81ef-2ba21b589391\" /\u003e\n\n### Additional information\n\n_No response_\n\n### Operating system\n\n_No response_\n\n### Matplotlib Version\n\n3.10.8\n\n### Matplotlib Backend\n\n_No response_\n\n### Python version\n\n_No response_\n\n### Jupyter version\n\n_No response_\n\n### Installation\n\nNone","author":{"url":"https://github.com/williamlus","@type":"Person","name":"williamlus"},"datePublished":"2026-02-12T07:23:42.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/31135/matplotlib/issues/31135"}
| 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:28cad260-e8a9-79ca-ec1b-d55e20a17c86 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A0C6:31BD6B:67B94:89B11:6A52699A |
| html-safe-nonce | d55e3e1705edac6b3941101c4f9dcb423ed8d128d5c422e7283f66752b93bf82 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMEM2OjMxQkQ2Qjo2N0I5NDo4OUIxMTo2QTUyNjk5QSIsInZpc2l0b3JfaWQiOiI4NjE4NTI1MDg3MjY2NjYyODEwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | dc3d5b707d03fb86b91131c34d276021af0e67648acc3f8ae376946f0f473475 |
| hovercard-subject-tag | issue:3930262827 |
| 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/31135/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a7c602634f6aa9bc9d76f33266518471edbee452b7a79569dc7c0e8dea4d56fa/matplotlib/matplotlib/issues/31135 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a7c602634f6aa9bc9d76f33266518471edbee452b7a79569dc7c0e8dea4d56fa/matplotlib/matplotlib/issues/31135 |
| og:image:alt | Bug summary Setting the figure of the polar axes breaks the polar coordinates. This does not happen for the default axes. Code for reproduction import matplotlib.pyplot as plt fig = plt.figure() ax... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | williamlus |
| 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 | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width