Label point (tag) with "text" from another wave?

I have a plot that requires I label every 10th point. However, the label text is contained in another wave. The graph is say Data1 vs. Data0, and the text I want to be displayed over every 10th point is located in Data2. All waves have the same dimensions.

Is there an easy way to do this within the program, or should I simply write a small script?
Hi,

Create a text wave with the labels you want for markers. Make it the same length as your data.

Set the data to markers and the from the marker selection popup menu in the modify trace dialog select text. In that new dialog window you can set the maker to take text from text wave.

Andy
hegedus wrote:
Hi,

Create a text wave with the labels you want for markers. Make it the same length as your data.

Set the data to markers and the from the marker selection popup menu in the modify trace dialog select text. In that new dialog window you can set the maker to take text from text wave.

Andy


Andy,
Thank you for the suggestion, but that simply makes all of the markers Text. And it doesn't allow me to label every 10th marker.
If your text wave has text for every element, but you only want every tenth one, you can make a new text wave with 9 out of 10 elements set to "":
duplicate twave, twavecopy      // new text wave
twavecopy = SelectString(mod(p, 10) , twave[p], "")

Naturally, replace "twave" with the actual name of your text wave, and "twavecopy" with your choice of name.
To display regular markers between the text markers, append your data twice and set one of those traces to regular markers.
You can get just a line between your text markers by choosing Lines and Markers mode.

John Weeks
WaveMetrics, Inc.
support@wavemetrics.com