Reputation: 604
The code:
plt.plot(x,"g.")
plt.show()
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?
Upvotes: 3
Views: 3804
Reputation: 4095
Set linestyle
to "None"
:
plt.plot(x,color="darkgreen",marker=".", linestyle="None")
Upvotes: 4