matplotlib 中文显示设置

from matplotlib import pyplot as plt
plt.rcParams['font.sans-serif']=['SimHei']#用来正常显示中文标签
plt.rcParams['axes.unicode_minus']=False #用来正常显示符号

猜你喜欢

转载自blog.csdn.net/weixin_40161254/article/details/82849367