Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 519322f

Browse files
committed
Pass Unicode strings to matplotlib, since some of them are > 128.
1 parent 8380feb commit 519322f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/pylab_examples/font_table_ttf.py

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
for ccode, glyphind in codes:
3333
if ccode>=256: continue
3434
r,c = divmod(ccode,16)
35-
s = chr(ccode)
35+
s = unichr(ccode)
3636
chars[r][c] = s
3737

3838

0 commit comments

Comments
 (0)