LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

give a label to plots

Hello!

I have a multiplots XY graph and I want to give a label to each plot, the labels names are in the first row of the 2D array, the first column corresponds to X axis values, You will find attached an example of what i want to do.

Please any idea how to do this ? which property nodes I shall use ? 

Thank you in advance  

0 Kudos
Message 1 of 2
(2,267 Views)

OK, without seeing your VI I'd say:

Index the 2D array to get the first row.Plot Names.png

 

Then, unfortunately, you can't pass an array to the plot names (at least not to my knowledge). Instead, you have to activate each plot on after another and give it that name like in my snippet. You can make sure that you have the correct number of elements using the LegNumRows Property, but somehow this doesn't work, when you have a horizontal plot legend and I couldn't find another property for that case.

 



Remember Cunningham's Law
Message 2 of 2
(2,240 Views)