This is an extremely common task/question, and was most recently brought-up in #947. There isn't a great way to do this with ScottPlot right now. This topic has its own FAQ page https://swharden.com/scottplot/faq/data-gaps

I know we go back and forth on how to handle double.NaN, but perhaps scatter plots could be modified in some way to recognize when lines start and stop (separated by NaN), and call System.Drawing.DrawLines() multiple times. Implementing this properly may also solve other problems related to NaN, and be an alternative to adjusting min and max render index 🤔