LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reciprocal Graph Scales

I'm trying to plot an XY Graph with one of the scales (x-axis) set to the reciprocal of a variable.  I can plot this by calculating the values within an array, however the scales (as would be expected) now show the reciprocated value (ie. 1/value).  I would like to plot the reciprocal values whilst still displaying the actual values, similarly to how mapping in log mode would show the value before taking it's logarithm.  Essentially I'm wondering if a reciprocal mapping mode can be generated, since the scale varies non-linearly.  I'm using LAbview V8.0.  Thanks.
 
 
 
0 Kudos
Message 1 of 4
(3,322 Views)

"Stel" <x@no.email> wrote in message news:1168963809212-464389@exchange.ni.com...
I'm trying to plot an XY Graph with one of the scales (x-axis) set to the reciprocal of a variable.&nbsp; I can plot this by calculating the values within an array, however the scales (as would be expected) now show the reciprocated value (ie. 1/value).&nbsp; I would like to plot the reciprocal values whilst still displaying the actual values, similarly to how mapping in log mode would show the value before taking it's logarithm.&nbsp; Essentially I'm wondering if a reciprocal mapping mode can be generated, since the scale varies non-linearly.&nbsp; I'm using LAbview V8.0.&nbsp; Thanks.
&nbsp;
&nbsp;
&nbsp;


Create a property node of the graph, select the Y Scale, and select the property Marker Values[]. With this property, you can set the markers any way you like it (the values are sorted automatically). Use the Flipped property to reverse the scale.


Regards,


Wiebe.
0 Kudos
Message 2 of 4
(3,304 Views)


wiebe@CARYA wrote:
Create a property node of the graph, select the Y Scale, and select the property Marker Values[]. With this property, you can set the markers any way you like it (the values are sorted automatically). Use the Flipped property to reverse the scale.

I am pretty sure if this will not work because "stel" wants labels that don't correspond to the underlying plotted data. For example, he wants to show a 10 where the value is actually 0.1, etc.

The proper solution would be to make your own graph in a picture indicator. Have a look at the example "XY Multi Plot.vi" as a starting point.

Unlike the scales of sliders, graph scales unfortunately don't support text labels (Now here's something that could be useful! :)). Of course you could cheat, hide the graph axis and substitute a slider with only the axis shown. Now assign label/value pairs of e.g. "10"/0.1, "2"/0.5, etc.. as desired.

Align everything perfectly and make sure to disable "autoadjust scales" on the graph so things don't move around. See how far you get. 😄

0 Kudos
Message 3 of 4
(3,293 Views)

"altenbach" <x@no.email> wrote in message news:1169230209633-466185@exchange.ni.com...
Wiebe@CARYA wrote:Create a property node of the graph, select the Y Scale, and select the property Marker Values[]. With this property, you can set the markers any way you like it (the values are sorted automatically). Use the Flipped property to reverse the scale.



I am&nbsp;pretty sure if this will not work because "stel" wants&nbsp;labels that don't correspond to the underlying plotted data. For example, he wants to show a 10 where the value is actually 0.1, etc.
The proper solution would be to make your own graph in a picture indicator. Have a look at the example "XY Multi Plot.vi" as a starting point.
Unlike the scales of sliders, graph scales unfortunately don't support text labels (Now here's something that could be useful! :)). Of course you could cheat, hide the graph axis and substitute a slider with only the axis shown. Now assign label/value pairs of e.g. "10"/0.1, "2"/0.5, etc.. as desired.
Align everything perfectly and make sure to disable "autoadjust scales" on the graph so things don't move around. See how far you get. 😄


Ok, I didn't get that. He could also duplicate the scale, use scale 1 for the data, and scale 2 for visualisation, where the markers are set with the property node. That will save the allignment part.


Regards.


0 Kudos
Message 4 of 4
(3,274 Views)