绘图中无法显示中文 import matplotlib.pyplot as plt plt.rcParams['font.sans-serif'] = ['SimHei'] # 正常显示中文 plt.rcParams['axes.unicode_minus'] = False # 正常显示负号