ScottPlot.NET
GitHub Repo stars

Scatter Plot Filled to a Value

The base of the fill can be defined.

ScottPlot.Plot myPlot = new();

double[] xs = Generate.Consecutive(51);
double[] ys = Generate.Sin(51);

var sp = myPlot.Add.Scatter(xs, ys);
sp.FillY = true;
sp.FillYColor = sp.Color.WithAlpha(.2);
sp.FillYValue = 0.6;

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