Title: rotated text does not align · Issue #14239 · matplotlib/matplotlib · GitHub
Open Graph Title: rotated text does not align · Issue #14239 · matplotlib/matplotlib
X Title: rotated text does not align · Issue #14239 · matplotlib/matplotlib
Description: Bug report Bug summary rotating different text by 90 degrees give different baseline alignment Code for reproduction import matplotlib.pyplot as plt plt.figure(figsize=(2., 2.)) plt.text(0.5, 0.0, 'yB', fontsize=40, rotation=90) plt.text...
Open Graph Description: Bug report Bug summary rotating different text by 90 degrees give different baseline alignment Code for reproduction import matplotlib.pyplot as plt plt.figure(figsize=(2., 2.)) plt.text(0.5, 0.0, ...
X Description: Bug report Bug summary rotating different text by 90 degrees give different baseline alignment Code for reproduction import matplotlib.pyplot as plt plt.figure(figsize=(2., 2.)) plt.text(0.5, 0.0, ...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/14239
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"rotated text does not align","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\nrotating different text by 90 degrees give different baseline alignment\r\n\r\n**Code for reproduction**\r\n\r\n```python\r\nimport matplotlib.pyplot as plt\r\nplt.figure(figsize=(2., 2.))\r\nplt.text(0.5, 0.0, 'yB', fontsize=40, rotation=90)\r\nplt.text(0.5, 0.5, 'By', fontsize=40, rotation=90)\r\nplt.show()\r\n```\r\n\r\n**Actual outcome**\r\n\r\n\r\n\r\n\r\n**Expected outcome**\r\n\r\nExpected 'yB' and 'By' to be aligned \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: CentOS Linux 7\r\n * Matplotlib version: 3.0.3\r\n * Matplotlib backend (`print(matplotlib.get_backend())`): Qt5Agg\r\n * Python version: 3.6.8\r\n\r\n\u003c!--Please tell us how you installed matplotlib and python e.g., from source, pip, conda--\u003e\r\n\u003c!--If you installed from conda, please specify which channel you used if not the default--\u003e\r\ninstalled via conda\r\n\r\n","author":{"url":"https://github.com/chapochn","@type":"Person","name":"chapochn"},"datePublished":"2019-05-18T02:25:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/14239/matplotlib/issues/14239"}
| 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:777acf34-d8fb-ee1b-e0c5-9c187f8462d5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D7F8:16E576:E609BF:1386265:6A520059 |
| html-safe-nonce | b3f79781dd4a4c37b3e56faa22462061e220b2a4e0a24efc48927b8c4a62291a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEN0Y4OjE2RTU3NjpFNjA5QkY6MTM4NjI2NTo2QTUyMDA1OSIsInZpc2l0b3JfaWQiOiIxNTEwNDcxODM0MzYxMDA0MTIxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b5ecaba189a7f8379455e4bc62da80d63dfc8c78f5a40ee6c5a8d0593ed7ea29 |
| hovercard-subject-tag | issue:445669477 |
| 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/14239/issue_layout |
| twitter:image | https://opengraph.githubassets.com/42ef8373175c2c8ea884fc65073b2faf5b6e120a9cc2d97ec63d801f4e890b13/matplotlib/matplotlib/issues/14239 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/42ef8373175c2c8ea884fc65073b2faf5b6e120a9cc2d97ec63d801f4e890b13/matplotlib/matplotlib/issues/14239 |
| og:image:alt | Bug report Bug summary rotating different text by 90 degrees give different baseline alignment Code for reproduction import matplotlib.pyplot as plt plt.figure(figsize=(2., 2.)) plt.text(0.5, 0.0, ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | chapochn |
| 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