LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Subtle Questions on X-Y Graph

Below is an example of using a X-Y graph. I have 2 questions.

 

 

22707i8257D164756FA38E

 

 

1. Is it possible to move the points to the center of the grid,and also move x, and y axis label to the center, something like this

 

 

22709i6FDF58DF1FB1242B

 

Note that the points are now in the center of the grid, and the axis label numbers are also moved to the center of the gird.

 

 

2. Is it possible to retrieve the values of a point on a X-Y graph. For example, if the user clicks the first point on the above graph (any of the graph), the value [1,2] is obtained, and stored.

 

Thanks

0 Kudos
Message 1 of 4
(2,795 Views)

The easiest way would be to swap the major and minor grid colors and change the scale style:

22711iB699116E7A5D833F

 

About the detection, you can get the point where the mouse click was done with the MapCoordsToXY invoke node, this will return the XY values of a point. With some interpolation on the data you can then get the exact value at that point.

 

Ton

 

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 2 of 4
(2,788 Views)

Thanks for the reply. I tried your method, but it is not working yet. I have attached the picture/VI.22719i2E70EFFB0CF077F1

 

Thanks.

0 Kudos
Message 3 of 4
(2,757 Views)

Something got executed once.  Now every time you run that VI, one swaps back to normal, the other swaps to the inverted colors.

 

Try disabling the Y scale section and run again.

 

You really don't want to constantly grab the graph's cluster of color.  You only want to do that once to get the default for the graph.

Message 4 of 4
(2,744 Views)