Matplotlib scatter marker size
问题 I'm trying to plot a 3D scatter with matplotlib The problem is that I can't change the marker's size I have this scat = plt.scatter([boid_.pos[0] for boid_ in flock], [boid_.pos[1] for boid_ in flock], [boid_.pos[2] for boid_ in flock], marker='o', s=5) But I get the error TypeError: scatter() got multiple values for keyword argument 's' Without that, the plot works fine. Where is the problem? Or is there another way to change the size? 回答1: This function takes in two args before the keyword