How to convert mouse coordinates to X-Y plot coordinates in WindowsForms?

Oystein Bjorke il y a 5 ans 0
This discussion was imported from CodePlex

funkerkat wrote at 2013-10-15 10:38:

Hi, thanks for lib! I like it but I need help.
Is it possible to get mouse coordinates converted to X-Y plot coordinates? I use OxyPlot lib for WindowsForms. I want to get mouse coordinates X-Y in mouse event handler (MouseClick for example). I know similiar functionality is realized in WPF lib, but as I know tracker is not implemented in WindowsForms.
I'm a newbie, please help me to solve this problem, i'll appreciate any advices! If it needs to modify lib please show me with which classes I should work...

objo wrote at 2013-10-15 15:05:

The axes have inverse transform methods that you can use to convert from mouse coordinates to plot coordinates. See the mouse event examples in the example library!