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

Commit23e04d0

Browse files
committed
fix not found chars
1 parent3610db1 commit23e04d0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

‎lib/matplotlib/mathtext.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -833,11 +833,9 @@ def _get_glyph(self, fontname, font_class, sym, fontsize):
833833
found_symbol=False
834834
font=self._get_font(new_fontname)
835835
iffontisnotNone:
836-
try:
837-
glyphindex=font.get_char_index(uniindex)
836+
glyphindex=font.get_char_index(uniindex)
837+
ifglyphindex!=0:
838838
found_symbol=True
839-
exceptKeyError:
840-
pass
841839

842840
ifnotfound_symbol:
843841
ifself.cm_fallback:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp