08-30-2010 11:23 AM
Below is an example of using a X-Y graph. I have 2 questions.
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
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
08-30-2010 11:36 AM - edited 08-30-2010 11:38 AM
The easiest way would be to swap the major and minor grid colors and change the scale style:
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
08-30-2010 01:36 PM
Thanks for the reply. I tried your method, but it is not working yet. I have attached the picture/VI.
Thanks.
08-30-2010 01:53 PM
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.