8000 Can't use CJKV? · Issue #14269 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
8000

Can't use CJKV? #14269

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
diohabara opened this issue May 20, 2019 · 1 comment
Closed

Can't use CJKV? #14269

diohabara opened this issue May 20, 2019 · 1 comment

Comments

@diohabara
Copy link

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
@anntzer
Copy link
Contributor
anntzer commented May 20, 2019

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
Projects
None yet
Development

No branches or pull requests

2 participants
0