ScottPlot.NET
GitHub Repo stars

Interactive Horizontal Line

An interactive horizontal line has a Y position and extends to infinity along the X axis.

ScottPlot.Plot myPlot = new();

for (int i = 0; i < 5; i++)
{
    double x = Generate.RandomNumber();
    myPlot.Add.InteractiveHorizontalLine(x);
}

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