Page 1 of 1

Mouse coordinates to calculate the x axis values

Posted: Fri May 09, 2014 6:20 am
by clamp1981
Hi,

Part of the question, leaving the questions.
Mouse coordinates to calculate the value of the x axis I would like to
Real time graphs and can update data.
ViewXY of the Active View.

I also sample and the reference method?

Re: Mouse coordinates to calculate the x axis values

Posted: Fri May 09, 2014 10:46 am
by ArctionPasi
Hi,

You can use axis.CoordToValue to convert screen coordinate (mouse coordinate) to axis value.

And axis.ValueToCoord to convert from axis value to screen coordinate.

This applies both X and Y axes.