determine first unused color for getting colors in a graphlegend