stop lines from crossing in traceline plots