Showing results for 
Search instead for 
Did you mean: 

how to update number of rows on plot legend

Go to solution

Hi All,

how to update number of rows on plot legend programatically? I was able to do it by property node with active plot and number of rows (legend). but I have issue when trying to limit the rows with vertical scroll bar.


That is, I want to see 40 plots, but only 20 could be visible directly, the others could be viewed while pulling the scroll bar.


it is ok to do when the next time plots are less than last time. but there is error when I try to set the number of rows more than last time.


0 Kudos
Message 1 of 9

R-click Legend, Visible items, Scrollbar.

G# - Award winning reference based OOP for LV, for free! ADDQ VIPM Now on GitHub
"Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
Message 2 of 9

I try to update names for 40 plots and set the rows to 20, the error happens. but try twice seems works. I don't know why. 


then ok to update names for 5 plots, set rows to 5,


after that, there is an error when try to update names for 30 plots and set rows to 20.


sorry, I can't touch my pc currently.



0 Kudos
Message 3 of 9

Hi All,

I have uploaded the vi and the picture show the issue I was tring to avoid.

Download All
0 Kudos
Message 4 of 9

Use Legend:Number of Rows Property. You are using the correct property but you connect the wrong wire.



Message 5 of 9

Hi ZYOng,

If I connect to the upper wire, there will be an error when I update the plot names more than previous. that means an error will come out when replace the input array A with Array B. but don't know why this time the error didn't come out. it looks like to happen when increase the plot names first time.


it is ok to do for plot names less than previous.


but if I connect the lower wire, no errors but could not hide the other plots.


0 Kudos
Message 6 of 9

It seems if I try to update the quantity more than the preset number of the plots, the error will come out.

for example, if the pre set number is 40, I can update the quantity from 1-40 without isssues. but when I try to update the quantity to 41, the error will come out.

0 Kudos
Message 7 of 9

please help to take a look at this VI, I created a new graph and the error came out.

0 Kudos
Message 8 of 9
Accepted by topic author yeah

 it seems ok to hide the legend-set the max number for the plots-and then update the number of rows.

Message 9 of 9