Smooth Scatter without Overshoot
The quadratic half point path strategy allows scatter plots to be displayed with smooth lines connecting points, but lines are eased in and out of points so they never ‘overshoot’ the values vertically.
ScottPlot.Plot myPlot = new();
double[] xs = Generate.Consecutive(10);
double[] ys = Generate.RandomSample(10, 5, 15);
var sp = myPlot.Add.Scatter(xs, ys);
sp.PathStrategy = new ScottPlot.PathStrategies.QuadHalfPoint();
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
