Title: Incomplete Text Render when Chinese and English characters are used together in an upright vertical way · Issue #20419 · matplotlib/matplotlib · GitHub
Open Graph Title: Incomplete Text Render when Chinese and English characters are used together in an upright vertical way · Issue #20419 · matplotlib/matplotlib
X Title: Incomplete Text Render when Chinese and English characters are used together in an upright vertical way · Issue #20419 · matplotlib/matplotlib
Description: Bug report Bug summary Incomplete Text Render when Chinese and English characters are used together in an upright vertical way. The Chinese characters after the English characters will only show the left half. Code for reproduction impor...
Open Graph Description: Bug report Bug summary Incomplete Text Render when Chinese and English characters are used together in an upright vertical way. The Chinese characters after the English characters will only show th...
X Description: Bug report Bug summary Incomplete Text Render when Chinese and English characters are used together in an upright vertical way. The Chinese characters after the English characters will only show th...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/20419
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Incomplete Text Render when Chinese and English characters are used together in an upright vertical way","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\nIncomplete Text Render when Chinese and English characters are used together in an upright vertical way. The Chinese characters after the English characters will only show the left half.\r\n\r\n**Code for reproduction**\r\n\r\n\u003c!--A minimum code snippet required to reproduce the bug.\r\nPlease make sure to minimize the number of dependencies required, and provide\r\nany necessary plotted data.\r\nAvoid using threads, as Matplotlib is (explicitly) not thread-safe.--\u003e\r\n\r\n```python\r\nimport matplotlib.pyplot as plt\r\nplt.rcParams['font.sans-serif'] = ['SimHei']\r\nplt.text(0, 0, '\\n'.join(\"现代美学\")) #all chinese is fine\r\nplt.text(0.2, 0, '\\n'.join(\"hello world 123\")) # all english/number is fine\r\nplt.text(0.4, 0, '\\n'.join(\"现代hello美学\")) #a mixture results in incomplete render of the chinese characters after the English chars\r\nplt.show()\r\n```\r\n\r\n**Actual outcome**\r\n\r\nhttps://i.imgur.com/BXWiW0H.png\r\n\r\n**Expected outcome**\r\n\r\nhttps://i.imgur.com/9syXGpC.jpeg\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: windows 10\r\n * Matplotlib version: 3.11\r\n * Matplotlib backend: module://ipykernel.pylab.backend_inline\r\n * Python version: 3.7.4\r\n * Jupyter version (if applicable): 6.0.1\r\n * Other libraries: \r\n\r\n\r\n","author":{"url":"https://github.com/EllenGYY","@type":"Person","name":"EllenGYY"},"datePublished":"2021-06-12T01:10:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/20419/matplotlib/issues/20419"}
| 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:29b660be-ac3f-b4cd-b633-a3fa6ccba9f3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A836:108FC:2244A7E:2E22A26:6A538715 |
| html-safe-nonce | 769a4cf55d7efb952c6635b6f38d9d23b965fe8970aadc0cad1facf678b81c4b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODM2OjEwOEZDOjIyNDRBN0U6MkUyMkEyNjo2QTUzODcxNSIsInZpc2l0b3JfaWQiOiI4NTM5MjYxNjIwNDM3ODc4NTQ5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 86bbd69d6eac9dfef10a2d95cc4de9b86e4d642c35c95d0e34450f60a919db2d |
| hovercard-subject-tag | issue:919348491 |
| 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/20419/issue_layout |
| twitter:image | https://opengraph.githubassets.com/83d07ba92fa86616dd8a8f089d89971252b5c1ae9d23c967449d73e56a9bc00f/matplotlib/matplotlib/issues/20419 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/83d07ba92fa86616dd8a8f089d89971252b5c1ae9d23c967449d73e56a9bc00f/matplotlib/matplotlib/issues/20419 |
| og:image:alt | Bug report Bug summary Incomplete Text Render when Chinese and English characters are used together in an upright vertical way. The Chinese characters after the English characters will only show th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | EllenGYY |
| 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