Showing results for 
Search instead for 
Did you mean: 

finding the center of an xy graph?

Go to solution

I'm developing on one computer and implementing on another computer with a different monitor. 


I'm trying to draw a cross-hairs in the middle of the graph by

--finding the bounds of the display (Disp.WkSpace),

--setting graph properties to position = (0,0) with 

--plot bounds and plot area size that of the monitor, and

--drawing in the "middle" (plot area size dimensions each cut in half). 


works fine on my computer but cross-hair is shifted to the right considerably on the target monitor.


any thoughts?

0 Kudos
Message 1 of 3
Accepted by topic author Fritz_Reitz

Why not use a cursor (can be set to look like crosshairs) and set the location of the cursor to half X annge, half y range (assuming no log axis).


Also if you find the mid range point (center of plot area) you can use the method Map coordinates to XY to find the position inrespect to the graph's owning pane.

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
Message 2 of 3

yes, much better, thanks!

0 Kudos
Message 3 of 3