LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XY Graph size changes with Y scale

I have 2 XY Graphs on the screen (one above the other) so we can review data from 18 channels (want to do comparisons). The X axis is time and is the same for all data channels. The Y axis is all over the map (some is vacuum pressure, some High voltage, etc....). It also changes over a series of experiment runs for any particular channel. The problem is that the graph moves left/right as you add and remove digits/characters to the scale for the Y axis (ie change full scale from 3 to 30000). I have held the actual graph width fixed but fixing the left hand edge of the graph doesn't help as the distance between the Y axis and the left hand edge is what's changing. Any ideas??
0 Kudos
Message 1 of 5
(3,856 Views)
Hi,
I did a little trick ... chose invisible style for graph's Y scale, added a invisible vertical slide above the graph and updated both in the same time.
I didn't test it too much but it seems to be OK.

Hope this helps
0 Kudos
Message 2 of 5
(3,856 Views)
> I have 2 XY Graphs on the screen (one above the other) so we can
> review data from 18 channels (want to do comparisons). The X axis is
> time and is the same for all data channels. The Y axis is all over the
> map (some is vacuum pressure, some High voltage, etc....). It also
> changes over a series of experiment runs for any particular channel.
> The problem is that the graph moves left/right as you add and remove
> digits/characters to the scale for the Y axis (ie change full scale
> from 3 to 30000). I have held the actual graph width fixed but fixing
> the left hand edge of the graph doesn't help as the distance between
> the Y axis and the left hand edge is what's changing. Any ideas??
>

You've got a couple options. The scale changes size because
the number
of digits displayed change alot. If you use scientific display, then
the digits remains constant and the scale will not resize things. The
other option depends on the version of LV. In LV6.1, each graph has a
popup under the Advanced menu item to turn off the Scale Sizing. If
using an earlier version, you can change your .ini file to make all of
the graphs scales behave this way. You should be able to find an
article about this on zone.ni.com. It is under Building User
Interfaces/Displaying Data/Graphs and Charts/Accounting for the Shifting
Y Axis in Graphs and Charts. The token is enableAutoScales=FALSE.

Greg McKaskle
Message 3 of 5
(3,856 Views)
I just need one help, I have one xy graph, when i am giving values to xy graph it is moving left. so I want to maintain minimum as 0 and maximum as variable.So could you please help me rearding this..

thank you
0 Kudos
Message 4 of 5
(3,856 Views)
> I just need one help, I have one xy graph, when i am giving values to
> xy graph it is moving left. so I want to maintain minimum as 0 and
> maximum as variable.So could you please help me rearding this..
>

Two ways to take care of this. You can either use property nodes to set
the scale max and min along with array functions like Array Min/Max, or
you can use the normal autoscaling method, but add an additional plot to
the graph that displays only one point, (0, 0). You can set the plot to
have no point style and no graphic element will be drawn.

Greg McKaskle
0 Kudos
Message 5 of 5
(3,856 Views)