Scatter Plot with Smooth Lines
Scatter plots draw straight lines between points by default, but setting the Smooth property allows the scatter plot to connect points with smooth lines. Lines are smoothed using cubic spline interpolation.
ScottPlot.Plot myPlot = new();
double[] xs = Generate.Consecutive(10);
double[] ys = Generate.RandomSample(10, 5, 15);
var sp = myPlot.Add.Scatter(xs, ys);
sp.Smooth = true;
sp.LegendText = "Smooth";
sp.LineWidth = 2;
sp.MarkerSize = 10;
myPlot.SavePng("demo.png", 400, 300);
This recipe is one of many in the Scatter Plot category
