查找中文字體
find /usr/share/fonts/ -name "*.ttc"
設置Matplotlib字體
from matplotlib.font_manager import FontProperties
font = FontProperties(fname=r"/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc") # 從上面隨便選一個
plt.title("標題", fontproperties=font)
plt.xlabel("x軸標簽", fontproperties=font)
plt.ylabel("y軸標簽", fontproperties=font)
plt.show()