python折线图的rgb为啥运行是红字?

python折线图的rgb为啥运行是红字?

问题描述:

img

img

img


救命,这个是为啥啊?怎么解决?
运行是能运行,但这红字实在是让我害怕

         importmatplotlib.pyplotasplt
 2 x_values=range(1,1001)
 3 y_values=[x**2forxinx_values]
 4 plt.style.use('seaborn
 5 fig,ax=plt.subplots()
 6 ax.scatter(x_values,y_values,C.=.(0,0,0.8),edgecolor='none’,S=.10)
 7
 8O ax.set_title("平方数”,fontproperties.=.“SimHei”,fontsize.=.24)
 9 ax.set_xlabel("值”,fontproperties=“SimHei"fontsize=.14)
10 ax.set_ylabel("值的平方”,fontproperties.=.“SimHei".fontsize.=.14)
12 ax.tick_params(axis='both’,which='major',abelsize=14)
13 ax.axis(te,1100.0,1100000])
14 plt.show(
D:python\python.exe D:/pycharm/python练习/可视化/1.py
           LO0kS single CRGB ShouLd be avoided as value-mapping will Length Likeas numeric RGBA which have in its matcheswith*x*&★y*. argument Sequence, Drecedence P1ease
进程已结束,退出代码为 1
Lengthmatcheswith*x★&★y★, provide a 20 array W with a single row if you1 Please use t the★coLor* keyword-argument or intend to specify the RGBOr 58m6 RGBA value for all points

img


c换成color