Title: Center of rotation for text with rotation_mode='anchor' · Issue #13044 · matplotlib/matplotlib · GitHub
Open Graph Title: Center of rotation for text with rotation_mode='anchor' · Issue #13044 · matplotlib/matplotlib
X Title: Center of rotation for text with rotation_mode='anchor' · Issue #13044 · matplotlib/matplotlib
Description: Bug report After fixing an obvious vertical offset bug in #13029 the rotation import matplotlib.pyplot as plt plt.plot([0, 1], lw=0) plt.axvline(.5, linewidth=.5, color='.5') plt.axhline(.5, linewidth=.5, color='.5') N = 4 for r in range...
Open Graph Description: Bug report After fixing an obvious vertical offset bug in #13029 the rotation import matplotlib.pyplot as plt plt.plot([0, 1], lw=0) plt.axvline(.5, linewidth=.5, color='.5') plt.axhline(.5, linewi...
X Description: Bug report After fixing an obvious vertical offset bug in #13029 the rotation import matplotlib.pyplot as plt plt.plot([0, 1], lw=0) plt.axvline(.5, linewidth=.5, color='.5') plt.axhline(.5...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/13044
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Center of rotation for text with rotation_mode='anchor'","articleBody":"\u003c!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--\u003e\r\n\u003c!--You can feel free to delete the sections that do not apply.--\u003e\r\n\r\n### Bug report\r\n\r\nAfter fixing an obvious vertical offset bug in #13029 the rotation\r\n\r\n~~~\r\nimport matplotlib.pyplot as plt\r\nplt.plot([0, 1], lw=0)\r\nplt.axvline(.5, linewidth=.5, color='.5')\r\nplt.axhline(.5, linewidth=.5, color='.5')\r\n\r\nN = 4\r\nfor r in range(N):\r\n plt.text(.5, .5, 'pP', color=plt.get_cmap('jet')(r/N), size=100, rotation=r/N*360, va='center_baseline', rotation_mode='anchor')\r\n~~~\r\n\r\nlooks like this:\r\n\r\n\r\nI'm not sure if this is now 100% as desired:\r\n\r\n- The vertical position of the rotation point is not exactly at y=0.5 (slightly shifted down).\r\n- The horizontal position of the rotation point is not at x=0.5 but at the left edge of the first letter.\r\n\r\nIs this intended or are there still other bugs in the position calculation?","author":{"url":"https://github.com/timhoffm","@type":"Person","name":"timhoffm"},"datePublished":"2018-12-23T18:23:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":14},"url":"https://github.com/13044/matplotlib/issues/13044"}
| 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:f4daf9c1-9cf7-0ef6-26fe-ead4be72ba49 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DC70:3FC274:14D5D7:1CCD1E:6A532E66 |
| html-safe-nonce | f9ab150911c8ef0e5380abbd60580076257bcc7e65d34e487fa5e73207d7ab86 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQzcwOjNGQzI3NDoxNEQ1RDc6MUNDRDFFOjZBNTMyRTY2IiwidmlzaXRvcl9pZCI6IjcyMjE1MDU0Mzg1ODM1NjU5MjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e9380e87bc97f460cf33d7f492c18d57d0b2b378e3fa4858f0556b1a4b1666d9 |
| hovercard-subject-tag | issue:393770829 |
| 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/13044/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ac85c6a4faec11ff8333f32a0d90df9ecc0d936aa513f1082b01bfa024a21601/matplotlib/matplotlib/issues/13044 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ac85c6a4faec11ff8333f32a0d90df9ecc0d936aa513f1082b01bfa024a21601/matplotlib/matplotlib/issues/13044 |
| og:image:alt | Bug report After fixing an obvious vertical offset bug in #13029 the rotation import matplotlib.pyplot as plt plt.plot([0, 1], lw=0) plt.axvline(.5, linewidth=.5, color='.5') plt.axhline(.5, linewi... |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width