Pyplot: how to change the marker color in a plot?

Remember that pyplot is matplotlib, so you can simply search on matplotlib + marker color

https://matplotlib.org/api/_as_gen/matplotlib.pyplot.plot.html?highlight=plot#matplotlib.pyplot.plot

looks like you can define marker face color, edge color, etc… so it depends on what you want to do.

e.g.

plot(1:10,1:10,"o", markerfacecolor="g")
1 Like