Title: [Bug]: polar projection with `labels` on `set_ticks` gives UserWarning · Issue #31574 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: polar projection with `labels` on `set_ticks` gives UserWarning · Issue #31574 · matplotlib/matplotlib
X Title: [Bug]: polar projection with `labels` on `set_ticks` gives UserWarning · Issue #31574 · matplotlib/matplotlib
Description: Bug summary When testing out v3.11.0rc1 I'm starting to see a UserWarning when running the following code. I don't think this is expected behavior. Didn't get it on v3.10. Code for reproduction import matplotlib.pyplot as plt fig, ax = p...
Open Graph Description: Bug summary When testing out v3.11.0rc1 I'm starting to see a UserWarning when running the following code. I don't think this is expected behavior. Didn't get it on v3.10. Code for reproduction imp...
X Description: Bug summary When testing out v3.11.0rc1 I'm starting to see a UserWarning when running the following code. I don't think this is expected behavior. Didn't get it on v3.10. Code for repr...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/31574
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: polar projection with `labels` on `set_ticks` gives UserWarning","articleBody":"### Bug summary\n\nWhen testing out v3.11.0rc1 I'm starting to see a `UserWarning` when running the following code. I don't think this is expected behavior. Didn't get it on v3.10.\n\n### Code for reproduction\n\n```Python\nimport matplotlib.pyplot as plt\n\nfig, ax = plt.subplots(subplot_kw={\"projection\": \"polar\"})\nax.yaxis.set_ticks([0.25, 0.5, 0.75, 1.0], labels=[\"A\", \"B\", \"C\", \"D\"])\n```\n\n### Actual outcome\n\nGetting this `UserWarning`:\n\n``` python-traceback\nUserWarning: set_ticklabels() should only be used with a fixed number of ticks, i.e. after set_ticks() or using a FixedLocator. Otherwise, ticks may be mislabeled.\n ax.yaxis.set_ticks([0.25, 0.5, 0.75, 1.0], labels=[\"A\", \"B\", \"C\", \"D\"])\n```\n\n### Expected outcome\n\nNo `UserWarning`\n\n### Additional information\n\n_No response_\n\n### Operating system\n\n_No response_\n\n### Matplotlib Version\n\n3.11.0rc1\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/hoxbro","@type":"Person","name":"hoxbro"},"datePublished":"2026-04-27T08:04:21.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/31574/matplotlib/issues/31574"}
| 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:6fe4fc1a-7741-c92e-17fd-81a4a36bf1e6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DF8A:39F9C5:B659B4:F50A92:6A52BBC9 |
| html-safe-nonce | 94de861c40563212143f84766a5f040ee935f9e5b68ff0746f8acb5af2b56565 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjhBOjM5RjlDNTpCNjU5QjQ6RjUwQTkyOjZBNTJCQkM5IiwidmlzaXRvcl9pZCI6IjIwMDczMjM1NjgyNDE4MTg1NjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 47334efbf2740850e903c27310dd3a6a2ad161dc3c4c7c10ffd0daa412532b12 |
| hovercard-subject-tag | issue:4334110638 |
| 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/31574/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a1dc95bb14bd2f5b475598a9ee395a0512502c1d73e640e72e3dee539d6b6ede/matplotlib/matplotlib/issues/31574 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a1dc95bb14bd2f5b475598a9ee395a0512502c1d73e640e72e3dee539d6b6ede/matplotlib/matplotlib/issues/31574 |
| og:image:alt | Bug summary When testing out v3.11.0rc1 I'm starting to see a UserWarning when running the following code. I don't think this is expected behavior. Didn't get it on v3.10. Code for reproduction imp... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | hoxbro |
| 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