How to use Chinese font in matplotlib visuals

I am facing the problem when I want to display Chinese character in matplotlib plot.
Usually I will add this following clause to render it.

plt.rcParams['font.sans-serif'] = ['SimHei']

However font ‘simhei’ seems not exist in streamlit share server, so chinese cannot be displayed correctly. Actually I have looped for all the font in the server, and do not find a one which support chinese.
May I know how can I realize it .

Here is my repo:

Hi @skywateryang -

Streamlit sharing supports the installation of apt packages via a packages.txt file. I don’t have experience with Chinese fonts, but can you try the instructions from this page:

In your packages.txt file, place these two lines and see if it works: