Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Unable to set more than one font in legends, impossible to label data with Glyph from multiple languages. #15260

Closed
@mvarnold

Description

@mvarnold

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 dictionaries would solve this issue.

Code for reproduction

importmatplotlib.pyplotaspltf,axs=plt.subplots()plt.plot([iforiinrange(5)],label=u"#방탄소년단")plt.plot([iforiinrange(6)],label=u"#🔥")plt.legend()plt.show()

Actual outcome
image

Expected outcome

While 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp