+ 2

matplotlib

plt.scatter(x, y, edgecolors='k') What does 'k' stands for? Black?

24th Apr 2022, 7:15 AM
Lea
Lea - avatar
7 Answers
+ 4
'k' for black 'b' for blue 'g' for green 'r' for red 'c' for cyan 'm' for magenta 'y' for yellow 'w' for white
25th Apr 2022, 5:15 PM
Izaiah Kay
Izaiah Kay - avatar
+ 3
Think you are right. 'b' is already used for blue. I found it here, you have to scroll down a bit: https://www.w3schools.com/JUMP_LINK__&&__python__&&__JUMP_LINK/matplotlib_markers.asp
24th Apr 2022, 7:29 AM
Paul
Paul - avatar
+ 1
The way I (try to) remember this is that "b" was already taken for blue, so they took the last letter instead.
24th Apr 2022, 1:22 PM
Simon Sauter
Simon Sauter - avatar
+ 1
IzaiaH KaY Wow thank you!
27th Apr 2022, 6:37 AM
Lea
Lea - avatar
+ 1
Paul Thank you!
27th Apr 2022, 6:41 AM
Lea
Lea - avatar
0
Lol
 exactly what I was wondering why not “b”!!!! So tricky!
24th Apr 2022, 7:31 AM
Lea
Lea - avatar
- 1
Hii
26th Apr 2022, 3:03 AM
Asif Malik