添加代码:

    1. import matplotlib.pyplot as plt
    2. plt.rcParams['font.sans-serif']=['SimHei']
    3. plt.rcParams['axes.unicode_minus']=False