XWaveRefFromTrace
XWaveRefFromTrace (graphNameStr, traceNameStr)
The XWaveRefFromTrace function returns a wave reference to the wave supplying the X coordinates against which the named trace is displayed in the named graph window or subwindow.
Parameters
graphNameStr can be "" to refer to the top graph window.
When identifying a subwindow with graphNameStr, see Subwindow Syntax for details on forming the window hierarchy.
Details
XWaveRefFromTrace returns a null reference (see WaveExists) if the wave is not plotted versus an X wave.
graphNameStr and traceNameStr are strings, not names.
Examples
Display ywave vs xwave // XY graph
Print XWaveRefFromTrace("","ywave")[50] // prints xwave value at point 50
See Also
Trace Names, Programming With Trace Names
For other commands related to waves and traces: WaveRefIndexed, TraceNameToWaveRef, TraceNameList, CsrWaveRef, CsrXWaveRef.
For a description of wave references: Wave Reference Functions.
For a description of Traces: ModifyGraph.
For a discussion of Contour Traces: Contour Traces.
For commands referencing other waves in a graph: ImageNameList, ImageNameToWaveRef, ContourNameList, ContourNameToWaveRef.