matplotlib画图的时候显示不出中文和负号的解决办法


import
matplotlib.pyplot as plt
from pylab import * plt.rcParams['font.sans-serif'] = ['SimHei'] #显示中文 plt.rcParams['axes.unicode_minus']=False #用来正常显示负号
原文地址:https://www.cnblogs.com/linyujin/p/9894838.html