FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Please soon add Chinese language support!! It's to difficult for new people handle character · Issue #12597 · matplotlib/matplotlib · GitHub

Repository navigation

Please soon add Chinese language support!! It's to difficult for new people handle character #12597

Closed

Description

Thank you guys....

Activity

  1. anntzer commented on Oct 23, 2018

    Contributor

    You need to pick an otf font that actually supports Chinese but other than that, it's already working...

    from matplotlib.font_manager import FontProperties
    from matplotlib import pyplot as plt
    
    plt.title(
        "黑體",
        fontproperties=FontProperties(
            fname="/usr/share/fonts/adobe-source-han-sans-tw/SourceHanSansTW-Regular.otf"))
    plt.show()
    

    See #9787 for ttc support and #10249 for font selection issues.

  2. anntzer commented on Oct 23, 2018

    Contributor

    Actually that's essentially documented at https://matplotlib.org/tutorials/text/text_props.html#text-with-non-latin-glyphs. Closing, but feel free to ping with more questions.

  3. liam-nirvana commented on Oct 24, 2018

    Author
  4. tacaswell commented on Oct 24, 2018

    Member

    @liam-nirvana Glad you got this sorted! Fonts are surprisingly hard....

  5. fighting41love commented on Nov 6, 2018

    Same problem. It's really terrible experience to modify the font. Many people fix the problem for hours.....I spent 2 hours on it. Failed.

  6. anntzer commented on Nov 6, 2018

    Contributor

    We can make the experience better by putting #9175 back in with a slightly more verbose error message (it was reverted in #11615 due to other issues).
    I'll leave this closed, as #8765 already tracks the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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


      Back | FazBrowse Home | New Git URL