LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

autoadjust scale limit on plot, with offset

Hi,

I have a plot and the y scale is set to be scaled automatically. This is what I want. However, the space between the current highest value of the graph being plotted and the current highest value on the y scale is too small. Is there away to give it an offset?
For example, if a constant value of 17.8 is being plotted, the highest value shown on the y scale will be 18. Could I force it to be, say, 20?  that would be 20 - 17.8 = 2.2
So for example, can I set a permanent offset of 2.2 for this separation?

I hope this is not too confusing... Thanks!
0 Kudos
Message 1 of 3
(2,770 Views)

You can do whatever you want. Simply disable autoscaling, then set your own Ymin and Ymax via a property node.

You can calculate the desired values from your data e.g. by using "array min&max" and adding the extra padding.

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

Sure. First, check to see if Loose Fit is checked for the Y axis (right click on graph, Y Scale>Loose Fit). With this checked, it might be enough for your needs. Otherwise, you can use a property node to autoscale the Y axis once, then get the YScale.Maximum, add your offset, and write it to YScale.Maximum.

Message Edited by Dennis Knutson on 03-30-200609:23 AM

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