import matplotlib.font_manager as fm
myfont = fm.FontProperties(fname='C:/Windows/Fonts/msyh.ttc')
import matplotlib.pyplot as plt
squares = [1,4,9,16,25]
plt.plot(squares,linewidth=5)
plt.title("表头",fontproperties=myfont)
plt.xlabel("Value",fontproperties=myfont)
plt.ylabel("Square of Value",fontproperties=myfont)
plt.tick_params(axis='both',labelsize=14)
plt.show()
myfont = fm.FontProperties(fname='C:/Windows/Fonts/msyh.ttc')
import matplotlib.pyplot as plt
squares = [1,4,9,16,25]
plt.plot(squares,linewidth=5)
plt.title("表头",fontproperties=myfont)
plt.xlabel("Value",fontproperties=myfont)
plt.ylabel("Square of Value",fontproperties=myfont)
plt.tick_params(axis='both',labelsize=14)
plt.show()