From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

finding the center of an xy graph?

Solved!
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
(2,537 Views)
Solution
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
(2,520 Views)

yes, much better, thanks!

0 Kudos
Message 3 of 3
(2,477 Views)