jinfengxie commited on
Commit
e90c57d
·
verified ·
1 Parent(s): b618e7e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -17,7 +17,10 @@ import io
17
  import pandas as pd
18
 
19
  # Set the font to support Chinese characters
20
- matplotlib.rcParams['font.family'] = 'Noto Sans CJK SC'
 
 
 
21
 
22
  id2color= {1: [209, 35, 69],
23
  2: [216, 208, 246],
 
17
  import pandas as pd
18
 
19
  # Set the font to support Chinese characters
20
+ font_path = 'msyhbd.ttc'
21
+ font_prop = fm.FontProperties(fname=font_path)
22
+ matplotlib.rcParams['font.family'] = font_prop.get_name()
23
+ #matplotlib.rcParams['font.family'] = 'Noto Sans CJK SC'
24
 
25
  id2color= {1: [209, 35, 69],
26
  2: [216, 208, 246],