dltmdgus commited on
Commit
48d8b46
Β·
verified Β·
1 Parent(s): 49b9058

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -62,10 +62,10 @@ if page == "μ—°λ ΉλŒ€ 및 성별에 λ”°λ₯Έ μƒμœ„ 5개 λŒ€μΆœ λ„μ„œ":
62
  st.write(f"μƒμœ„ 5 λ„μ„œ (μ—°λ ΉλŒ€: {selected_age}, 성별: {selected_gender})")
63
  fig, ax = plt.subplots(figsize=(10, 6))
64
  sns.barplot(data=filtered_books, x='λ„μ„œλͺ…', y='λŒ€μΆœκ±΄μˆ˜', palette='viridis', ax=ax)
65
- ax.set_title(f'{selected_age} - {selected_gender}의 μƒμœ„ 5 λ„μ„œ')
66
- ax.set_xlabel('λ„μ„œλͺ…')
67
- ax.set_ylabel('λŒ€μΆœκ±΄μˆ˜')
68
- plt.xticks(rotation=45, ha='right')
69
  st.pyplot(fig)
70
  else:
71
  st.write("μ„ νƒν•œ 쑰건에 λ§žλŠ” 데이터가 μ—†μŠ΅λ‹ˆλ‹€.")
 
62
  st.write(f"μƒμœ„ 5 λ„μ„œ (μ—°λ ΉλŒ€: {selected_age}, 성별: {selected_gender})")
63
  fig, ax = plt.subplots(figsize=(10, 6))
64
  sns.barplot(data=filtered_books, x='λ„μ„œλͺ…', y='λŒ€μΆœκ±΄μˆ˜', palette='viridis', ax=ax)
65
+ ax.set_title(f'{selected_age} - {selected_gender}의 μƒμœ„ 5 λ„μ„œ', fontproperties=fontprop)
66
+ ax.set_xlabel('λ„μ„œλͺ…', fontproperties=fontprop)
67
+ ax.set_ylabel('λŒ€μΆœκ±΄μˆ˜', fontproperties=fontprop)
68
+ plt.xticks(rotation=45, ha='right', fontproperties=fontprop)
69
  st.pyplot(fig)
70
  else:
71
  st.write("μ„ νƒν•œ 쑰건에 λ§žλŠ” 데이터가 μ—†μŠ΅λ‹ˆλ‹€.")