PGF/Tikz slow down to a crawl if there are to many points. This removes points that are repeated several times.