import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
plt.rcParams['font.sans-serif'] = ['SimHei', ]
plt.rcParams['axes.unicode_minus'] = False
import warnings
warnings.filterwarnings('ignore')
# 使用魔法指令%config配置输出矢量图
%config InlineBackend.figure_format = 'svg'
array=np.array([1,2,3,4,