ScottPlot.NET
GitHub Repo stars

Crosshair Quickstart

A Crosshair combines a horizontal axis line and vertical axis line to mark a location in coordinate space.

This code sample is specific to ScottPlot 5 (details)
ScottPlot.Plot myPlot = new();

myPlot.Add.Signal(Generate.Sin());
myPlot.Add.Signal(Generate.Cos());

myPlot.Add.Crosshair(13, .25);

myPlot.SavePng("demo.png", 400, 300);

Edit on GitHub