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

Can't use CJKV? · Issue #14269 · matplotlib/matplotlib · GitHub

Repository navigation

Can't use CJKV? #14269

Closed
Closed

Description

Bug report

Bug summary

I cannot write Japanese comments on matplotlib's graphs.

Code for reproduction

import matplotlib.pyplot as plt
data_a = [1, 2, 3, 4, 5]
data_b = [1, 4, 9, 16, 25]
plt.title('V_DS-I_D特性')
plt.scatter(data_a, data_b)
plt.show()

Actual outcome

https://imgur.com/HUTjUPQ

The part written in Japanese appears as weird rectangles.

Matplotlib version

  • Latest Google Collaboratory

Activity

  1. anntzer commented on May 20, 2019

    Contributor

    That is because the default font (DejaVu Sans) does not have CJKV [chinese japanese korean vietnamese] glyphs. Matplotlib 3.1+ (#12759) prints a warning: Requested glyph (\N{CJK UNIFIED IDEOGRAPH-7279}) missing from current font.

    See #12597 for essentially 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