LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

size of plot legend graphics

After trying to resize the plot legend of a waveform graph with the mouse, the small graphics showing the color and other plot properties suddenly got much longer, and the plot text was no longer left aligned. Tried to modify the legend programatically with a property node, setting ActPlot, LegWidth etc, but it doesn`t work the way I expected. The attached picture show an example of the problem. I want to resize the legend so it get a width the same as the outer bounds of the graph, the text should be left aligned, and the graphics stay small and right aligned. I`m using LV 2009.

Spoiler
 
0 Kudos
Message 1 of 3
(3,667 Views)

Gunnar,

 

You can basically get the sizes and alignations correct by customizing the Plot Legend. Select first the waveform graph itself -> Edit: Customize Control. After that select the first row (See Picture) from the Plot Legend and do the same -> Edit: Customize Control. Now you can type in the long plot name and move the graphics part to the right. Press "Apply changes" often to check if the Legend and its elements are in right place. Finally replace the original control with the customized control.

 

I hope this helps. A bit tricky to explain, but by playing with the customizing tool I'm sure you will get the idea soon.

 

Cheers,

 

Cerati

 

P.S. I noticed that it is in fact easier to write the plot names first directly to the legend and then use the customizing tool for the plot row to move the graphics to the right.

0 Kudos
Message 2 of 3
(3,636 Views)

Thanks! That did the trick!

 

Gunnar

0 Kudos
Message 3 of 3
(3,624 Views)