ScottPlot.NET
GitHub Repo stars

Grid Above Data

Grid lines are typically drawn beneath data, but grids can be configured to render on top of plottables too.

ScottPlot.Plot myPlot = new();

var sig = myPlot.Add.Signal(ScottPlot.Generate.Sin());
sig.LineWidth = 10;

myPlot.Grid.MajorLineWidth = 3;
myPlot.Grid.MajorLineColor = Colors.Black.WithAlpha(.2);
myPlot.Grid.IsBeneathPlottables = false;

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