Prevent having two curves or markers with the same legend.