ScottPlot.NET
GitHub Repo stars

Interactive Vertical Line

An interactive vertical line has an X position and extends to infinity along the Y axis.

ScottPlot.Plot myPlot = new();

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

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