LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XY Graph Plot Legend acting up

Has anyone seen this before? 

I have the XY Graph set to scale object to pane...

All I did was add the extra text to first the Plot 0 then to Plot 1.

Any ideas on how to fix it?

 

Plot Legend.jpg

 

Plot Legend Properties.jpg

 

Thanks,

Ryan

0 Kudos
Message 1 of 7
(3,802 Views)

Well, you've chosen to show us a really tiny sample of what we might want to see, so I'm willing to say "I don't have a clue, nor do I understand the nature of the problem".  Good luck.

 

Bob Schor

0 Kudos
Message 2 of 7
(3,791 Views)

Hey Bob, Thanks for looking at it.

The problem was with how the Plot Legend was displaying. the Plot names and icons are not inside the box that should hold them. (that fist image) 

 

It seems to have fixed itself. First I disabled the Autosize Plot Legend and changed the size of my VI window. The Legend box moved but the Plot data was still not contained in the box. 

Next I removed the extra text in the Plot names and the box fixed it self. I turned the Autosize Plot Legend back on and added the text back and now it is just fine. 

I know I did that same sequence before I posted but you know how it works as soon as you ask for help...

 

Here is what it should look like:

Plot Legend fixed.jpg

Ryan

0 Kudos
Message 3 of 7
(3,785 Views)

Scaling to pane never worked that well and if you throw a silver graph into the mix there is no telling what you get. 😞

 

Please attach a simplified version of your VI. It is much easier to fix things if a sample is provided that demonstrates the incorrect behavior reproducibly.

0 Kudos
Message 4 of 7
(3,783 Views)

Hey altenback, 

I was working on the Example VI when it started to behave... Thanks for the reply.

What do you usually use when you need to allow for various screen sizes? 

 

Thanks, 

Ryan

0 Kudos
Message 5 of 7
(3,779 Views)

@R^2 wrote:

 

What do you usually use when you need to allow for various screen sizes? 

 


I use fixed size panels. A bigger screen is useful to see more windows at the same time, not to waste it all on a single application. 😄

0 Kudos
Message 6 of 7
(3,768 Views)

>> What do you usually use when you need to allow for various screen sizes? 

Painkillers. It really hurts. 

Usually it is getting to separating objects that resize and that move into different panes. Preferrably 1 resizing object per pane. Design at minimum pane size and limit it in VI properties. Keep entire object within pane, pay attention to hidden parts (scale legend, cursor legend, numeric indicator).

Do not scale pictures, when they resample they become ugly. Fonts size is a separate problem - I always check that VI does not have "Scale fonts for different resolutions" and none of the controls is using application or dialog fonts. Then I press Ctrl+A and set fixed font.

 

I do not know what is better less worse - multiple versions or scaling. Or combination: wide screens one version, tall screens - another.

0 Kudos
Message 7 of 7
(3,745 Views)