Can't there be only one color sequence in python scatter drawing using colormap?

The error prompted by

is as follows:
ValueError: c of shape (1,) not acceptable as a color sequence for x with size 1, y with size 1

the code is as follows:
X_sample = [[0jue 2]]
y_sample = clf.predict (X_sample)
print (y_sample)
plt.scatter

the y_sample predicted by knn model is [0]. This is the only sequence that keeps reporting errors. Which god can point out the errors

Mar.04,2021
Menu