-
Hello! I was trying to fetch and display the coordinates of the data point that is nearest to the mouse cursor and I noticed a really strange and annoying behavior (or two). In the below GIF you can see that the plot "thinks" that the line is somewhere else, a bit lower than where it's displayed. A workaround might be to increase the As a quick observation, the closer to the left the points I "interrogate" are, the more accurate the result. The further to the right I hover, the greater the difference between the result and the real value. I would like to mention that I'm using ScottPlot 5.0.34 and that the issue only reproduces in WPF, not in WinForms.
Thank you for this awesome library! It has been a life savor. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Is your computer display scaled under Windows? If yes, your wpf application has to handle the scaling when converting a raw display pixel position into the effective pixel position as expected by ScottPlot. Here is an example of how to do that: |
Beta Was this translation helpful? Give feedback.
Is your computer display scaled under Windows? If yes, your wpf application has to handle the scaling when converting a raw display pixel position into the effective pixel position as expected by ScottPlot. Here is an example of how to do that:
#3465 (comment)