12-02-2009 05:03 PM
Hello all,
Is there someway to mathematically manipulate an axis to create an identical axis but in a different unit? What I am trying to do is display spectral data from an FTIR and I'd like to show the wavelength in both wavenumbers and microns. So one X-axis would be in wavenumbers and another in microns.
Thanks for your help in advance....
Jay
12-02-2009 06:42 PM
You can right click on the X axis and select Duplicate Scale. You can modify the scale to that the beginning and end will match your other x scale with whatever factors you need.
I think if you used the event for the graph's ScaleRange Change, you could detect when one X scale changes and programmatically change the other X scale to match by way of the graph's property nodes.
12-03-2009 08:41 AM
12-03-2009 09:07 AM - edited 12-03-2009 09:08 AM
You can use an picture indicator and do all drawing manually. have a look at some of the examples in the example finder for ideas (e.g. "XY Multi Plot.vi").
In the long run you might want to support two of my ideas that would allow doing what you want directly:
Once we have all this, you can set the markers wherever you want, and give it arbitrary marker text, e.g. containing the numbers in the "other" units.
12-03-2009 09:52 AM
12-03-2009 09:59 AM - edited 12-03-2009 10:07 AM
Radman wrote:
Interesting ideas but this won't work if one zooms a plot to focus on a specific segment. There has got to be some way to mathematically transform once axis based on the value of another besides simple offset and multipliers.
Of course the axes would need to be recalculated when the graph is zoomed.
We currently only have two mappings: Linear and log. It would be great to have more options, as well as an option to define a formula for a custom mapping to relate the displayed number to the underlying value. I'll post an idea....