Title: Unable to set more than one font in legends, impossible to label data with Glyph from multiple languages. · Issue #15260 · matplotlib/matplotlib · GitHub
Open Graph Title: Unable to set more than one font in legends, impossible to label data with Glyph from multiple languages. · Issue #15260 · matplotlib/matplotlib
X Title: Unable to set more than one font in legends, impossible to label data with Glyph from multiple languages. · Issue #15260 · matplotlib/matplotlib
Description: Bug report Bug summary It is impossible to set more than one font in a legend making it impossible to label data in different languages, such as chinese, arabic and emojis, in the same legend. Allowing prop to accept lists of dictionarie...
Open Graph Description: Bug report Bug summary It is impossible to set more than one font in a legend making it impossible to label data in different languages, such as chinese, arabic and emojis, in the same legend. Allo...
X Description: Bug report Bug summary It is impossible to set more than one font in a legend making it impossible to label data in different languages, such as chinese, arabic and emojis, in the same legend. Allo...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/15260
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unable to set more than one font in legends, impossible to label data with Glyph from multiple languages.","articleBody":"\r\n### Bug report\r\n\r\n**Bug summary**\r\n\r\nIt is impossible to set more than one font in a legend making it impossible to label data in different languages, such as chinese, arabic and emojis, in the same legend. Allowing prop to accept lists of dictionaries would solve this issue. \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\n\r\nf, axs = plt.subplots()\r\nplt.plot([i for i in range(5)], label=u\"#방탄소년단\")\r\nplt.plot([i for i in range(6)], label=u\"#🔥\")\r\nplt.legend()\r\nplt.show()\r\n```\r\n\r\n**Actual outcome**\r\n\r\n\r\n\r\n**Expected outcome**\r\n\r\nWhile it would be nice if matplotlib searched for fonts with support for unicode characters, simply allowing lists of fonts to be specified for each handle label, rather than enforcing using one font.\r\n\r\n","author":{"url":"https://github.com/mvarnold","@type":"Person","name":"mvarnold"},"datePublished":"2019-09-12T20:31:31.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/15260/matplotlib/issues/15260"}
| 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:7c03c380-9ea1-d4b7-25dc-fe3c7d5f131a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B5AC:B97C3:B01906F:F728824:6A510424 |
| html-safe-nonce | 2f857ab95fbb93e8633cd09da699239d7c7f1277533ef946880296b43355432b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNUFDOkI5N0MzOkIwMTkwNkY6RjcyODgyNDo2QTUxMDQyNCIsInZpc2l0b3JfaWQiOiI0NjMxNzEwOTQ4NzQ2Mzk2NzA4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0c4634b55669ed2a50d3a0b29c62262360415f8093e723e3c71ea204f18789db |
| hovercard-subject-tag | issue:493014691 |
| 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/15260/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7f776b213eea5858a6dc375d90994ed1d3599f91fb88187fb060b78d94766cd8/matplotlib/matplotlib/issues/15260 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7f776b213eea5858a6dc375d90994ed1d3599f91fb88187fb060b78d94766cd8/matplotlib/matplotlib/issues/15260 |
| og:image:alt | Bug report Bug summary It is impossible to set more than one font in a legend making it impossible to label data in different languages, such as chinese, arabic and emojis, in the same legend. Allo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mvarnold |
| hostname | github.com |
| expected-hostname | github.com |
| None | 38906a4da4e3e9fd88dfeacee232f5932c0c5f7495de3b4efc53ddfac7173d12 |
| 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 | 90441ea9b98e7491aa6ebcd135fccce4e2396f48 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width