PLT. Scayter (x_values y_values, c=(0, 0, 0.8), s=40)
Prompt error said, c should be a 2 d array
What should the parameters of the question, I c assignment

CodePudding user response:
Custom color do you want?General is c=c='b' or 'black' this single color,
Another is according to different color, every point set that c=[1, 2, 3,...
The length of the c and x_values, y_values length is consistent,
CodePudding user response:
Thank you, I want a custom color, I am according to the above the "python programming from entry to practice", he said the above parameters can be set to c a tuple, which contains three small numerical 0 and 1, respectively, on behalf of the red, green and blue component, didn't understand why the error prompt in mean