试了好多种,包括替换字体 ,修改这 修改那,还不行
现在找到一个方法,下载某个字体,保存路径
代码如下:
import matplotlib.pyplot as plt
from matplotlib.font_manager import FontProperties
font = FontProperties(fname = "C:/Users/Administrator/Desktop/Vera.TTF", size=14)
plt.title(u"气死劳资了",fontproperties=font)
plt.plot((1,2,3),(4,3,-1))
plt.xlabel(u's傻逼',fontproperties=font)
plt.ylabel(u'二货',fontproperties=font)
plt.show()