Title: [Bug]: Font-Fallback implemented in 3.6.0 does not work for title or labels · Issue #23992 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: Font-Fallback implemented in 3.6.0 does not work for title or labels · Issue #23992 · matplotlib/matplotlib
X Title: [Bug]: Font-Fallback implemented in 3.6.0 does not work for title or labels · Issue #23992 · matplotlib/matplotlib
Description: Bug summary Font-Fallback implemented in #20740 does not work for title or labels. Code for reproduction import matplotlib.pyplot as plt def plot_graph(): fig, ax = plt.subplots(figsize=(6, 3)) text = 'There are 多个汉字 👈👉 in between!' plt....
Open Graph Description: Bug summary Font-Fallback implemented in #20740 does not work for title or labels. Code for reproduction import matplotlib.pyplot as plt def plot_graph(): fig, ax = plt.subplots(figsize=(6, 3)) tex...
X Description: Bug summary Font-Fallback implemented in #20740 does not work for title or labels. Code for reproduction import matplotlib.pyplot as plt def plot_graph(): fig, ax = plt.subplots(figsize=(6, 3)) tex...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/23992
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: Font-Fallback implemented in 3.6.0 does not work for title or labels","articleBody":"### Bug summary\r\n\r\nFont-Fallback implemented in https://github.com/matplotlib/matplotlib/pull/20740 does not work for title or labels.\r\n\r\n\r\n\r\n### Code for reproduction\r\n\r\n```python\r\nimport matplotlib.pyplot as plt\r\n\r\n\r\ndef plot_graph():\r\n fig, ax = plt.subplots(figsize=(6, 3))\r\n text = 'There are 多个汉字 👈👉 in between!'\r\n plt.rcParams['font.family'] = ['Segoe UI Emoji', 'SimHei']\r\n plt.figtext(0.3, 0.7, text)\r\n plt.title(text)\r\n plt.xlabel(text)\r\n plt.ylabel(text)\r\n plt.show()\r\n\r\n\r\nplot_graph()\r\n```\r\n\r\n\r\n### Actual outcome\r\n\r\n\r\n\r\n\r\n\r\n### Expected outcome\r\n\r\nTitle and labels should be displayed correctly like the figtext.\r\n\r\n### Additional information\r\n\r\n_No response_\r\n\r\n### Operating system\r\n\r\nWindows\r\n\r\n### Matplotlib Version\r\n\r\n3.6.0\r\n\r\n### Matplotlib Backend\r\n\r\nTkAgg\r\n\r\n### Python version\r\n\r\n3.10.7\r\n\r\n### Jupyter version\r\n\r\n_No response_\r\n\r\n### Installation\r\n\r\npip","author":{"url":"https://github.com/tinyboxvk","@type":"Person","name":"tinyboxvk"},"datePublished":"2022-09-24T01:04:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/23992/matplotlib/issues/23992"}
| 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:2df240a9-10f2-2b73-1bc2-b404617e6cc4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AD68:1C38BA:BE95AA:FD4A6E:6A518DF4 |
| html-safe-nonce | d4da02272d3ebf1d68317298fd61ddbe24000b28d70f6fa9a0a5356b148ce7b4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRDY4OjFDMzhCQTpCRTk1QUE6RkQ0QTZFOjZBNTE4REY0IiwidmlzaXRvcl9pZCI6IjM5MzA4NTkzOTIyNzA5NjIxNjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | dceee363dfc9a290bd0bfc15f7fb26ab80cd1532c4a937a4dc6ed6256bc0933c |
| hovercard-subject-tag | issue:1384468770 |
| 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/23992/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f8cf52a1b10267ac9a030ca7eed8ab90f2cc35e3bb9fb6d50220d7413f35d275/matplotlib/matplotlib/issues/23992 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f8cf52a1b10267ac9a030ca7eed8ab90f2cc35e3bb9fb6d50220d7413f35d275/matplotlib/matplotlib/issues/23992 |
| og:image:alt | Bug summary Font-Fallback implemented in #20740 does not work for title or labels. Code for reproduction import matplotlib.pyplot as plt def plot_graph(): fig, ax = plt.subplots(figsize=(6, 3)) tex... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tinyboxvk |
| 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 | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width