Why the function arguments marker and c show the points?

looking at the examples from the first week of the optional lab, I wanna know if these two parameters (what I had underlined from the picture)could be changed into different parameters? and it had be labeled that the default is blue dots, but why both of these dots are red?Or are these two presentation could be changed into the other,why ?

Hi @VictoriaXiong,

The short answer is yes, the parameters can be changed.

But to give you a detailed answer, could specify what is the name of this lab ? So that I can take a look.

Thanks,
Mubsi

Hi @VictoriaXiong ,

The scatter() function has a number of keyword arguments. The marker, and c are two of them.
You can change these parameters from a list of permitted choices. For example, instead of setting the marker to x, it can be set to a dot. The key argument c is to set the colour of your choice.

Here is a tutorial with detailed reference on the matplotlib package.

2 Likes