Title: Polar plot label rotation ignored · Issue #10882 · matplotlib/matplotlib · GitHub
Open Graph Title: Polar plot label rotation ignored · Issue #10882 · matplotlib/matplotlib
X Title: Polar plot label rotation ignored · Issue #10882 · matplotlib/matplotlib
Description: Bug report Bug summary In matplotlib 2.0.2 you could rotate the axes labels on a polar plot, just as with any other plot for i, label in enumerate(ax.get_xticklabels()): label.set_rotation(i*90) This is not possible anymore with matplotl...
Open Graph Description: Bug report Bug summary In matplotlib 2.0.2 you could rotate the axes labels on a polar plot, just as with any other plot for i, label in enumerate(ax.get_xticklabels()): label.set_rotation(i*90) Th...
X Description: Bug report Bug summary In matplotlib 2.0.2 you could rotate the axes labels on a polar plot, just as with any other plot for i, label in enumerate(ax.get_xticklabels()): label.set_rotation(i*90) Th...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/10882
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Polar plot label rotation ignored","articleBody":"### Bug report\r\n\r\n**Bug summary**\r\n\r\nIn matplotlib 2.0.2 you could rotate the axes labels on a polar plot, just as with any other plot\r\n\r\n```python\r\nfor i, label in enumerate(ax.get_xticklabels()):\r\n label.set_rotation(i*90)\r\n```\r\nThis is not possible anymore with matplotlib 2.2.2\r\n\r\n**Code for reproduction**\r\n\r\n```python\r\nimport matplotlib\r\nimport numpy as np\r\nimport matplotlib.pyplot as plt\r\n\r\n\r\nfig=plt.figure(figsize=(4,3))\r\nax = plt.subplot(111, polar=True)\r\nax.set_xlabel(\"Matplotlib \"+matplotlib.__version__)\r\nticks = np.arange(3)*np.pi/2.\r\nlabels = [\"\".join([a]*5) for a in list(\"ABC\")]\r\n\r\nplt.xticks(ticks, labels, size=16)\r\nfor i, label in enumerate(ax.get_xticklabels()):\r\n label.set_rotation(i*90)\r\n\r\nplt.tight_layout()\r\nplt.show()\r\n```\r\n\r\n**Actual outcome with matplotlib 2.2.2**\r\n\r\nThe rotation of the labels is simply ignored.\r\n\r\n\r\n\r\n\r\n**Expected outcome (as with 2.0.2)**\r\n\r\nWe would expect to see the labels rotated as in this plot, produced by the same code run on matplotlib 2.0.2.\r\n\r\n\r\n\r\n\r\n","author":{"url":"https://github.com/ImportanceOfBeingErnest","@type":"Person","name":"ImportanceOfBeingErnest"},"datePublished":"2018-03-26T17:22:28.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":11},"url":"https://github.com/10882/matplotlib/issues/10882"}
| 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:57a832d7-bf6f-f2cd-0272-eddf47050973 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D13A:3C82F7:83C3A6:B10C80:6A52ABE5 |
| html-safe-nonce | 24bcf63177282bd629f64fc9e1e6c562ae46dcaf377801304b70c05c4d614fe2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTNBOjNDODJGNzo4M0MzQTY6QjEwQzgwOjZBNTJBQkU1IiwidmlzaXRvcl9pZCI6IjI2OTI0MjMyODQ5MTQ1NjQwNjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4f183e4651b0dcbb704fdc6b5ba5b6a571d78ad351cc8a5ac0e84e94192ad108 |
| hovercard-subject-tag | issue:308663443 |
| 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/10882/issue_layout |
| twitter:image | https://opengraph.githubassets.com/07394db5a0590d4504bcefdb3f10005b58d4d840bdd45e913ce08fdf702f0cc7/matplotlib/matplotlib/issues/10882 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/07394db5a0590d4504bcefdb3f10005b58d4d840bdd45e913ce08fdf702f0cc7/matplotlib/matplotlib/issues/10882 |
| og:image:alt | Bug report Bug summary In matplotlib 2.0.2 you could rotate the axes labels on a polar plot, just as with any other plot for i, label in enumerate(ax.get_xticklabels()): label.set_rotation(i*90) Th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ImportanceOfBeingErnest |
| 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