I often plot a point on a matplotlib plot with:
x = 10
y = 100
plot(x, y, "k*", label="Global Optimum")
legend()
However, this causes the legend to put a star in the legend twice, such that it looks like:
* * Global Optimum
when I really want it to look like:
* Global Optimum
How do I do this?
numpoints=2
convention and was relieved to see someone had already taken the time to ask about it and get an answer. – Chris Redfordscatterpoints=1
– Marcos Alex