I am developing a VB .NET program in the VisualStudio 2022 environment and I use the ScottPlot package for generating two-dimensional graphs. In ScottPlot 4 version, it was possible to obtain the coordinates of the mouse position over the graph using the .MouseMove event and the .GetMouseCoordinates() function. Is there a similar option in the ScottPlot 5 package?
I wish to display to the user the coordinates pointed by the mouse.
It seems that the function is not available anymore, therefore I think we can achieve the same thing using the
GetCoordinates
function. You can use it within the MouseMove event:Alternatively, by creating a function that calculates the mouse position on the control and convert them to coordinates on the plot: