From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how do i change the visible length of the plotnames in a graph legend

i would like to change the length of the visible plotname in the graph legend (only 10 characters standard).
even with the customizing tool cannot make it the right size for my application.
0 Kudos
Message 1 of 5
(2,669 Views)
Hi,

resize it from the left corner (upper or lower) of the graph legend. It will work!

Alberto
0 Kudos
Message 2 of 5
(2,669 Views)
How do I do this programmatically?
0 Kudos
Message 3 of 5
(2,669 Views)
Use the SetCtrlAttribute for the graph and use ATTR_LEGEND_WIDTH.
0 Kudos
Message 4 of 5
(2,363 Views)
In LabVIEW, drop a property node from the Application Control palette.  Right click on it and choose Link To and navigate to the graph you want to change.  Now click on the property text.  This will activate a huge menu.  Down at the bottom, choose Legend->Size->Width.  Right-click the new property text and choose Change To Write.  Set this value to a width in pixels.  Note that the optimum value will change depending on your display font (whose default changes between XP and Vista).
0 Kudos
Message 5 of 5
(2,348 Views)