Matplotlib 顯示中文

Matplotlib 顯示中文 1. 在腳本運行的開始處設置 在最開頭寫上python plt.rcParams['font.family'] = ['sans-serif'] plt.rcParams['font.sans-serif'] = ['SimHei'] 例如:web import matplotlib.pyplot as plt # 在個人 notebook 裏,要設置下面兩行才能
相關文章
相關標籤/搜索