from matplotlib import font_manager fontprop = font_manager.FontProperties(fname='path\to\font\msyh.ttf') plt.legend(prop=fontprop) plt.xlabel('XXX',fontproperties=fontprop) plt.ylabel('XXX',fontproperties=fontprop) plt.title('XXX',fontproperties=fontprop)