st.subheader('λ²μ£λ³ νν©')
whole_values = my_pop.groupby('Offences')[['Total']].sum()
bar_width = 0.6
bar_color = 'orange'
fig, ax = plt.subplots()
ax.bar(whole_values.index, whole_values['Total'], width=bar_width, color=bar_color)
ax.set_xlabel('λ²μ£ μ’
λ₯')
ax.set_ylabel('λ²μ£μ μ(λ¨μ: λͺ
)')
ax.set_title('λ²μ£λ³ λ²μ£μ μ')
ax.yaxis.set_major_formatter(ticker.StrMethodFormatter('{x:,.0f}'))
ax.set_xticklabels(whole_values.index, rotation=90, ha='right')
st.pyplot(fig)
I used an above code and it shows giant grph on the web⦠How to make the graph smaller on the web?