The code:
plt.plot(x,"g.")
plt.show()
generates:

When I try to specify colors in another way, lines are added:
plt.plot(x,"darkgreen",marker=".")
plt.show()

I don't need the lines. How can I use colors apart from the single character codes, without having the lines added to the plot?
Set linestyle to "None":
plt.plot(x,color="darkgreen",marker=".", linestyle="None")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With