LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

plotting the idex of data

hi,
   is it possible to indicate the  index of the data along with the plot at the corresponding location on the plot (x-y graph or 3d-graph)

for example if we plot the following data like (0,0),(1,1),(2,2),(3,3)   then can we indicate the indices of these data (i.e 0,1,2,3) on the corresponding plot which is line in this case
0 Kudos
Message 1 of 5
(4,301 Views)
If you add a cursor to the graph and display the cursor palette, you can display both X and Y values, so that would seem to provide what you want.
Message 2 of 5
(4,293 Views)
You can create a cursor list array where there is one cursor for every point on the graph. Set the name of the cursor to the text you want to display (the index value) then you can set the properties of the cursor such as color, line style (set to 0 if you don't want to see the lines) etc.
Message 3 of 5
(4,271 Views)
hi nissen thanks for ur reply for xy graph it works. in case of 3d surface plot where x,y,z data is there how to plot the index along with the plot?
0 Kudos
Message 4 of 5
(4,177 Views)

Please take alook at this thread where I posted an example of using the 3d-graph.

 

This image shows a cursor with the XYZ triplet displayed.

 

 

 

If that what you want you can find the code in that thread.

 

If that is not what you want, please put together a small demo that uses your data and some sketches of what you need. Someone may be able to be better serve you.

 

Just trying to help,

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 5 of 5
(4,164 Views)