Fix scatter custom ranges and colors for line plot