Look at the second figure here, I'm currently working with a scatterplot and when I plot the legend I get two "sample points" (in the link they are the two blue stars). How can I show just one of them? Why does matplotlib plot 2 of them?
The sort of code that I'm using is
plt.legend(bbox_to_anchor=(0., 1.02, 1., .102), mode="expand", borderaxespad=0.)
I'm new to this so I still don't use 'legend handles'.
Thanks in advance