ScottPlot.NET
GitHub Repo stars

Scatter Plot with Lines Only

The ScatterLine() method can be used to create a scatter plot with a line only (marker size is set to 0).

ScottPlot.Plot myPlot = new();

double[] xs = Generate.Consecutive(51);
double[] sin = Generate.Sin(51);
double[] cos = Generate.Cos(51);

myPlot.Add.ScatterLine(xs, sin);
myPlot.Add.ScatterLine(xs, cos);

myPlot.SavePng("demo.png", 400, 300);
This recipe is one of many in the Scatter Plot category