LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

resize plot legend programmatically

Solved!
Go to solution

Hi All,

 

I want to know if there is any way to programatically re-size the plot legend so that it can show longes names. I have tried setting the "Autosize" property to TRUE but I do not need that because some names in the plot could be really long and I do not want to show the complete name. I need a way to resize it so whataever size I want.

I played around with the "LegWidth" property but when I increase it, the size of the text box in the legend remains the same.

 

Is there any way to implement it what I want to achieve?

 

Thanks!

0 Kudos
Message 1 of 4
(3,631 Views)

Easiest solution: Format the strings of plot names to right size, and then use Autosize.

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

How do I change the font size of the plot name programatically? 

 

0 Kudos
Message 3 of 4
(3,581 Views)
Solution
Accepted by topic author LVCoder

Here is a rough draft of the custom legend I created. I can resize the plot legend by dragging it to the left or right.

Message 4 of 4
(3,486 Views)