Python中图表中文显示方法

myfont = FontProperties(fname='C:/Windows/Fonts/simsun.ttc',size=14)
plt.legend(prop =myfont)
plt.xlabel('能量值',fontproperties=myfont)
plt.ylabel("能量值",fontproperties=myfont)
plt.title("映射关系",fontproperties=myfont)

猜你喜欢

转载自blog.csdn.net/ti09257/article/details/80668152