1 #coding:utf-8 2 import matplotlib.pyplot as plt 3 plt.rcParams['font.sans-serif']=['SimHei'] #用来正常显示中文标签 4 plt.rcParams['axes.unicode_minus']=False #用来正常显示负号 5 #有中文出现的情况,需要u'内容'
python matplotlib 中文显示参数设置
猜你喜欢
转载自www.cnblogs.com/luozeng/p/9073231.html
今日推荐
周排行