Roberta2024 commited on
Commit
d1c787f
·
verified ·
1 Parent(s): 6e3d7dc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -68,7 +68,7 @@ if st.button("生成圖表"):
68
  font=dict(size=12),
69
  legend=dict(orientation="h", yanchor="bottom", y=-0.5, xanchor="center", x=0.5),
70
  height=700, # 增加圖表高度
71
- margin=dict(t=100, b=100) # 增加上下邊距
72
  )
73
  st.plotly_chart(fig_pie, use_container_width=True)
74
 
@@ -96,4 +96,4 @@ font_response = requests.get(font_url)
96
  with open("TaipeiSansTCBeta-Regular.ttf", "wb") as font_file:
97
  font_file.write(font_response.content)
98
  fm.fontManager.addfont("TaipeiSansTCBeta-Regular.ttf")
99
- mpl.rc('font', family='Taipei Sans TC Beta')
 
68
  font=dict(size=12),
69
  legend=dict(orientation="h", yanchor="bottom", y=-0.5, xanchor="center", x=0.5),
70
  height=700, # 增加圖表高度
71
+ margin=dict(t=50, b=150, l=50, r=50) # 增加上下左右邊距
72
  )
73
  st.plotly_chart(fig_pie, use_container_width=True)
74
 
 
96
  with open("TaipeiSansTCBeta-Regular.ttf", "wb") as font_file:
97
  font_file.write(font_response.content)
98
  fm.fontManager.addfont("TaipeiSansTCBeta-Regular.ttf")
99
+ mpl.rc('font', family='Taipei Sans TC Beta')