按如下代码:
import matplotlib.pyplot as plt %matplotlib inline from pylab import *plt.rcParams['font.sans-serif']=['SimHei'] #用来正常显示中文标签plt.rcParams['axes.unicode_minus']=False #用来正常显示负号