UserWarning: color is redundantly defined by the 'color' keyword argument and the fmt string "k" (-> color=(0.0, 0.0, 0.0, 1)). The keyword argument will take precedence.
plt.plot(x,y,'k',color='r',linewidth=3,linestyle='-')
函数参数错误,https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.plot.html