Upload app.py
Browse files
app.py
CHANGED
|
@@ -160,8 +160,7 @@ async def main():
|
|
| 160 |
# st.image(file.get_image() #! working.
|
| 161 |
# file.show_image()
|
| 162 |
myfont = FontProperties(fname='SimHei.ttf') # NOTE: 注意这里的云服务器路径格式。
|
| 163 |
-
|
| 164 |
-
# sns.title(label='这是中文标题', fontproperties='myfont')
|
| 165 |
sns.axes_style("whitegrid", {'font.sans-serif':['myfont','Arial']})
|
| 166 |
plt.rcParams['font.sans-serif'] = ['myfont']
|
| 167 |
|
|
|
|
| 160 |
# st.image(file.get_image() #! working.
|
| 161 |
# file.show_image()
|
| 162 |
myfont = FontProperties(fname='SimHei.ttf') # NOTE: 注意这里的云服务器路径格式。
|
| 163 |
+
sns.title(label='这是中文标题', fontproperties='myfont')
|
|
|
|
| 164 |
sns.axes_style("whitegrid", {'font.sans-serif':['myfont','Arial']})
|
| 165 |
plt.rcParams['font.sans-serif'] = ['myfont']
|
| 166 |
|