How to do a scatter plot with different edgecolor in matplotlib?

Viewed 26106

I wish to plot a scatter plot with no facecolors but with different edgecolors. In other words, colorful circles.

I thought I could easily found solution in matplotlib gallery but surprisingly I couldn't. Parameter "edgecolors" does not accept array as values. And manipulate parameter 'c' won't help with edgecolors but facecolors.

Here is a link that I thought would be the solution: https://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.scatter.html enter image description here

The demo picture at the end of the page seems to have colorful edgecolors! Then I download the script and run it: enter image description here

The edge is still black.

I am now doing my plot other ways. (since this is not a big matter. This is only a question of interest.) I just wonder how did the demo get the colorful edges.

1 Answers
Related