Title: [ENH]: Make rotation_mode="xtick" the default for ticks · Issue #29926 · matplotlib/matplotlib · GitHub
Open Graph Title: [ENH]: Make rotation_mode="xtick" the default for ticks · Issue #29926 · matplotlib/matplotlib
X Title: [ENH]: Make rotation_mode="xtick" the default for ticks · Issue #29926 · matplotlib/matplotlib
Description: #28968 introduced new rotation modes "xtick"/"ytick". We've employed them to all our examples, as this rotation setting is superior compared to fiddling with horizontal/verticalalignment. It's "how tick rotation should be". Proposed solu...
Open Graph Description: #28968 introduced new rotation modes "xtick"/"ytick". We've employed them to all our examples, as this rotation setting is superior compared to fiddling with horizontal/verticalalignment. It's "how...
X Description: #28968 introduced new rotation modes "xtick"/"ytick". We've employed them to all our examples, as this rotation setting is superior compared to fiddling with horizontal/vert...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/29926
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[ENH]: Make rotation_mode=\"xtick\" the default for ticks","articleBody":"#28968 introduced new rotation modes \"xtick\"/\"ytick\". We've employed them to all our examples, as this rotation setting is superior compared to fiddling with horizontal/verticalalignment. It's \"how tick rotation should be\".\n\n### Proposed solution\n\nMake these the default rotation modes for tick labels.\n\nTechnically, this is a breaking change, but I argue it's the better default and the breakage is minor:\n\n- If users did not specify alignment, it's changed from \"centered\" alignment to the \"pointing to tick\" aligment.\n- If users have cared to do the \"pointing\" to tick alignment manually (which is what we were teaching in examples before), their plot will stay the same.\n- If users have chosen other alignment, they'll need to adapt.\n\nThis is a tradeoff between making a reasonable default so that in the future rotated ticks are \"just right\" and people don't have to do `rotation_mode=\"xtick\"` explicitly all the time and breaking explicit alignment compatibility for a few rare edge cases.","author":{"url":"https://github.com/timhoffm","@type":"Person","name":"timhoffm"},"datePublished":"2025-04-16T07:40:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/29926/matplotlib/issues/29926"}
| 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:797c7aa5-d24c-6585-f128-be303e4989ed |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A2C2:FDB96:EEA5A4:1401D3F:6A51C595 |
| html-safe-nonce | dd5b040dcd66918fc48d6b7f96ce95bd154829427106b10effefa2fe3f4bf5bd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMkMyOkZEQjk2OkVFQTVBNDoxNDAxRDNGOjZBNTFDNTk1IiwidmlzaXRvcl9pZCI6IjUyNjA5ODg0NjAwNzcwMDgyNzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 345479d6d9c9aebac7fe4cc7da0c0de94648a65d75a4abd9067b71e60b2064b9 |
| hovercard-subject-tag | issue:2998764162 |
| 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/29926/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d0827ee35a14e05db05c3bed0813c4ff40b8253371239e1a1362cdcd14cb4cee/matplotlib/matplotlib/issues/29926 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d0827ee35a14e05db05c3bed0813c4ff40b8253371239e1a1362cdcd14cb4cee/matplotlib/matplotlib/issues/29926 |
| og:image:alt | #28968 introduced new rotation modes "xtick"/"ytick". We've employed them to all our examples, as this rotation setting is superior compared to fiddling with horizontal/verticalalignment. It's "how... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | timhoffm |
| 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 | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width