LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Position of legend

Hello,

I don't understand how is defined the position of the legend of a graph.

After compiling the program, when i execute it on different screens the position is never the same.

For example :

 

On my screen :                   

 

2010-10-11_101759.png

 

On another screen :

 

2010-10-11_100537.png

 

I really dont understand. Someone has an idea ?

Thanks

0 Kudos
Message 1 of 6
(4,338 Views)

Hi fredmazet,

 

There is a way to lock your legend to a graph.

 

  • Drag your cursor to select both the legend and the graph.
  • Go to the toolbar and click the button shown in the picture
  • Then click 'Lock'

Hope this helps!

 

Forum screenshot.png

 

 

Regards,

John McLaughlin
Academic Account Manager
National Instruments UK & Ireland
0 Kudos
Message 2 of 6
(4,325 Views)

Hi JohnMc19,

I thought that your solution was OK, but it seems that the result depends on the resolution of the screen :

The computer under which i develop has a wide 22" screen of 1680*1050. The different legends are correctly placed under this computer.

After a new compilation, on this same computer everything is all right.

On a 19 " screen (1280*1024 resolution), it works perfectly but on a 17" notebook (1440*900 resolution) the result (see under) is bad : 

 

2010-10-11_130031.png

 

I really dont understand.

 

Thank you very much for your help.

F.Mazet

 

 

 

0 Kudos
Message 3 of 6
(4,307 Views)

Hi,

 

You might also want to try setting the window location.

You can do this by opening your VI, go to:

File>VI properties>>click Windows Run Time Position

 

Then customise the settings, apart from these ideas i'm not sure how else you could adapt your front panel for varying resolutions.

 

I will keep looking into this for you!

 

Regards,

John McLaughlin
Academic Account Manager
National Instruments UK & Ireland
0 Kudos
Message 4 of 6
(4,296 Views)

It's anchored at the right side of the legend. If you get the right side of the legend attached to the graph, it'll look fine. So either top or bottom right or at the left of the graph.

 

Felix

0 Kudos
Message 5 of 6
(4,290 Views)

Thank you F Schubert and JohnMc19.

 

Well,for the "File>VI properties>>click Windows Run Time Position" panel, i tried but it doesn't works.

Felix, your solution works. But i wanted to place my legend at the right side of the graph because i d'ont have place enough under or above the graph.

So i don't know what to do...

 

Thank you very much.

F.Mazet

 

0 Kudos
Message 6 of 6
(4,233 Views)