i am making a scatter plot and want to label one of the points in the legend. i run
scatter([x], [y], …, label=“mylabel”)
and then run legend as follows
plt.legend(loc=‘lower right’, numpoints=1, pad=0.01, labelsep=.01, handlelen=.05)
i set numpoints=1 because i want it to show just one point and then its label. however, this always generates a legend with three points, i.e.
o o o my label
does anyone know how to fix this? thank you.