Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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=
|
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')
|