Page 1 of 1

viewxy - get screen coordinates of graphing area

Posted: Thu Sep 01, 2016 7:40 pm
by greggorob64
I'm trying to find a way (in screen coordinates) to get the entire graphing area.

What i'm doing right now is innefficient: get all all yMin and yMax of all y axis, convert to screen coordinates, and find the lowest and highest values (and do the same for X axes).

Is there a better way?

Re: viewxy - get screen coordinates of graphing area

Posted: Thu Sep 01, 2016 8:06 pm
by ArctionPasi
Yes. Use ViewXY.GetMarginsRect(). :)

Segments info can be read by ViewXY.GetGraphSegmentInfo(), that reveals top and bottom of each segment.