import matplotlib.pyplot as plt#导入图像库 plt.rcParams['font.sans-serif'] = ['SimHei']#用来正常显示中文标签 plt.rcParams['axes.unicode_minus'] = False#用来显示正负号