LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Loose fit in XY-Graph

Hi, all.

How can I get the "Loose Fit" Property to work properly in a XY-Graph?

I want the end markers of the Y-scale to be rounded to a multiple of the increment I set for Y-scale (that is 1). And I would like this to be working while I use the "PAN" tool. But I don't see any change when I set this property to TRUE, either I selected "PAN" or not.

What am I doing wrong?

By the way, I also want the plot area bounds to stay still when I use the PAN tool. I get changes in width when varies the Y-Scale.

Any suggestion?

I use LabView 8.6, and Windows XP.

Thanks,
Francisco

Download All
0 Kudos
Message 1 of 6
(5,468 Views)

Hello:

 

The property "Loose Fit" applies only to the "active x-scale" and the "active y-scale". Concerning the changes in width of the x-scale while moving the y-scale with the pan tool, you are right, it happens like that. But I am afraid there is no way to fix it.

 

I hope this can help you.

 

 

Regards. 

 

0 Kudos
Message 2 of 6
(5,425 Views)

Hi, j.sanchez.

 

I tried what you suggested, but I'm afraid the error still remains. I set the Active Y-Scale to 0, since there's no other one.

 

It seems that "Loose Fit" doesn't take any effect to the scale. Could it be a bug?

 

Could anyone try this in LV2009? I use LV8.6.

 

Thanks,

Francisco

0 Kudos
Message 3 of 6
(5,404 Views)

Hello:

 

The property "loose fit" works but in order to see this behaviour you must deal with a small scale, since it has not relation to the increment as you expected (and I also thought in the beginning). In the example I am attaching you can see this beahaviour and how changing the value of the increment does not affect to the result. Also, you do not need to modify the "active x-scale" o "active y-scale" since you have only one and that is the active. I have tried it on LabVIEW 2009. The VI is saved for 8.6 so that you can execute it but the behaviour is exactly the same in both versions.

 

I hope this can clarify the behaviour of this property.

 

Regards.

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

Hello,

Eventhough the last comment is quite old, I am having the same issue, and I don't understand why the "loose fit" option does not work as explained in the help :

Loose fit : If TRUE, LabVIEW rounds the end markers to a multiple of the increment used for the scale.

 

 

I have a simple xy graph, the y increment and minor increment are both set to 10 and the loose fit simply does not do what is writtent above. I expect the end markers to be 100 and 110.

 

Could someone please help ?

 

--

Nicolas

 

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

+1, confirm the bug.

When you call loose fit, for the limits it uses increment value, obtained from graph autoscaling. And autoscaling detemines increment automatically, it ignores specified value.

 

 

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