LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Unlink x-axis marker values from graph scale

Say there are three points to plot: y-values 2.1, 2.2 and 2.3. The x-values are 0, 1 and 2, respectively. How can the x-value marker values be changed to 22, 50 and 100 without rescaling the plot's x-axis?
0 Kudos
Message 1 of 5
(4,543 Views)
Since the x-values are no longer spaced equally, you need to use an x-y graph instead of a Waveform graph. Is that what you have?

What do you mean by "rescaling" the axis? If the axis has autoscale disable, it will be independent of the data. In the above case it would still show [0-2] and all points would be outside the visible area. You would now need to rescale to see the points.
0 Kudos
Message 2 of 5
(4,543 Views)
I've tried this with all graph types. I want the points to be evenly spaced on the x-axis. I want the marker labels on the x-axis to be arbitrary. e.g.: plotting gain error (y-axis: generally {-1%..1%}) versus gain setting (x-axis: generally {48, 24, 8, 4, 2, 1, 0.5, 0.025...}).

It seems this is not what the graphs were meant to do. Perhaps there is a workaround.
0 Kudos
Message 3 of 5
(4,543 Views)
> I've tried this with all graph types. I want the points to be evenly
> spaced on the x-axis. I want the marker labels on the x-axis to be
> arbitrary. e.g.: plotting gain error (y-axis: generally {-1%..1%})
> versus gain setting (x-axis: generally {48, 24, 8, 4, 2, 1, 0.5,
> 0.025...}).
>

The LV graphs support linear and log scaling, and they support a linear
transform between the plotted value and the labeled value, but you are
correct, they do not allow arbitrary labeling of the points on the scale.

To work around this, you might look at placing cursors/markers on the
graph. Show the text labels, hide the lines and points, and set the
color however you like for the text. The marker location can be at the
bottom or top of the g
raph, and the text can be your arbitrary values.
Then hide the X Scale.

Another approach is to hide the scale and have an array of strings or
numerics that you overlay. The problem with this approach is that as
fonts change when you change platforms, or MS changes the default font,
your array and graph won't line up. The markers on the graph always will.

Greg McKaskle
0 Kudos
Message 4 of 5
(4,544 Views)
I am trying to do the same thing as lesher (specifically I am trying to make a loglogistic probability plot) but cannot figure out a good way to do it.  Has LabVIEW made any changes in this area since these posts in 2004?  I've got version 8.5...
0 Kudos
Message 5 of 5
(4,200 Views)