Determining the Mouse Position
See the various mouse tracking and other interactive examples on the ScottPlot Demo page.
WPF users should note that mouse position must be multiplied by a scale factor if the system’s DPI scaling is enabled. See the DPI Scaling FAQ Page for more information.