Title: Bad rotation_mode/center_baseline combination even if rotation=0 · Issue #13028 · matplotlib/matplotlib · GitHub
Open Graph Title: Bad rotation_mode/center_baseline combination even if rotation=0 · Issue #13028 · matplotlib/matplotlib
X Title: Bad rotation_mode/center_baseline combination even if rotation=0 · Issue #13028 · matplotlib/matplotlib
Description: Bug report Bug summary When rotation_mode='anchor' and "verticalaligment="center_baseline", the vertical alignment is wrong even if ``rotation=0```. Code for reproduction import matplotlib.pyplot as plt plt.plot([0, 1], lw=0) plt.axvline...
Open Graph Description: Bug report Bug summary When rotation_mode='anchor' and "verticalaligment="center_baseline", the vertical alignment is wrong even if ``rotation=0```. Code for reproduction import matplotlib.pyplot a...
X Description: Bug report Bug summary When rotation_mode='anchor' and "verticalaligment="center_baseline", the vertical alignment is wrong even if ``rotation=0```. Code for reproduction imp...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/13028
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bad rotation_mode/center_baseline combination even if rotation=0","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\n**Bug summary**\r\n\r\nWhen ``rotation_mode='anchor'`` and ``\"verticalaligment=\"center_baseline\"``, the vertical alignment is wrong even if ``rotation=0```.\r\n\r\n\r\n**Code for reproduction**\r\n\r\n\r\n```python\r\nimport matplotlib.pyplot as plt\r\n\r\nplt.plot([0, 1], lw=0)\r\nplt.axvline(.5, linewidth=.5, color='.5')\r\nplt.axhline(.5, linewidth=.5, color='.5')\r\nplt.text(.5, .5, 'pP', color='k', size=100, va='center_baseline')\r\nplt.text(.5, .5, 'pP', color='tab:red', size=100, va='center_baseline', rotation_mode='anchor')\r\n```\r\n\r\n**Actual outcome**\r\n\r\n\u003c!--The output produced by the above code, which may be a screenshot, console output, etc.--\u003e\r\n\r\n\r\n**Expected outcome**\r\n\r\n\r\nSame alignment in this case.\r\n\r\n**Matplotlib version**\r\n\u003c!--Please specify your platform and versions of the relevant libraries you are using:--\u003e\r\n * Operating system: linux\r\n * Matplotlib version: 3.0.2\r\n * Matplotlib backend (`print(matplotlib.get_backend())`): agg, tkagg\r\n * Python version: 3.6\r\n * Jupyter version (if applicable):\r\n * Other libraries: \r\n\r\n\u003c!--Please tell us how you installed matplotlib and python e.g., from source, pip, conda--\u003e\r\nInstalled via conda.\r\n\u003c!--If you installed from conda, please specify which channel you used if not the default--\u003e\r\n\r\n","author":{"url":"https://github.com/stefraynaud","@type":"Person","name":"stefraynaud"},"datePublished":"2018-12-20T09:24:46.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/13028/matplotlib/issues/13028"}
| 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:f7d99da2-31dc-7b34-08ce-ed9e8c335cc6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9220:339F37:1A69934:26536F6:6A54DFEA |
| html-safe-nonce | 5f810c77b614ec4cc9fb2ac2174c8c032ee9a1ea1888c3a5d6572b2d56989f4d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MjIwOjMzOUYzNzoxQTY5OTM0OjI2NTM2RjY6NkE1NERGRUEiLCJ2aXNpdG9yX2lkIjoiODE0MzcxMTc3NDM1MDI5NDgyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9d4cecdae2482ef14d62a24c7511ca534afb99c0936a4159c8b6b9fecd6c25d6 |
| hovercard-subject-tag | issue:392956925 |
| 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/13028/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e2771c1afc8b63fd6c47fe41641d488e75268cf1559dc6efeff1ebfa6d0e2d14/matplotlib/matplotlib/issues/13028 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e2771c1afc8b63fd6c47fe41641d488e75268cf1559dc6efeff1ebfa6d0e2d14/matplotlib/matplotlib/issues/13028 |
| og:image:alt | Bug report Bug summary When rotation_mode='anchor' and "verticalaligment="center_baseline", the vertical alignment is wrong even if ``rotation=0```. Code for reproduction import matplotlib.pyplot a... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | stefraynaud |
| hostname | github.com |
| expected-hostname | github.com |
| None | eae2aab99907699a22d2c8449aa683ca74454fca87211b98f7c7b722086b2839 |
| 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 | bb1b4ffdc07c66de20ad344214f55df0aa364bd3 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width