LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Offset when drawing a square using plotimages.back property on XY graph

Solved!
Go to solution
Hello, I am developing a simple program in which you enter 2 vertical cursors on a XY graph by selecting its X coordinate and then it should highlight in yellow the area between the two mentioned cursors. The issue I am having is that although the program draws the square on the graph, there is an offset which I cannot get rid off. I have checked the entered coordinates to draw the square and they seem correct, However the offset is still there... Please, find attached my program, Thank you very much for your help!
0 Kudos
Message 1 of 3
(2,522 Views)

Sorry, the attached vi...

0 Kudos
Message 2 of 3
(2,506 Views)
Solution
Accepted by topic author Dominigomes

Well, I found the reason. To eliminate the offset you need to get the plot area bounds of the XY graph and substract "top" and "left" values from your cursor coordinates

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