Cannot change matplotlib figure size

Hello everyone. My matplotlib figure is too big, and I can’t change its size. I tried passing the figsize parameter both when creating the fig object and in the st.pyplot method. The figure size does not change.


import matplotlib.pyplot as plt
fig, ax = plt.subplots(figsize=(5, 5))
st.pyplot(fig, figsize=(5, 5))