Wed, 06/26/2019 - 08:34 am
I just discovered the /TN flag in Display and AppendToGraph, and it makes some issues much much easier for me. My question is, is it possible to rename a tracename? When a wave is renamed, its associated tracenames are renamed automatically in every graph according to the new wavename, provided they are the default "#" style. But if I specify the tracename myself using the /TN flag with Display or AppendToGraph, how can I modify the tracename?
This arises because I am writing an interface for users to trace structures on images. The interface shows multiple images on one graph, and the user has the option to show or hide different colour channels, as well as the tracings they have already done. The same tracing can therefore appear on multiple images. I have implemented the tracings as x-y waves (e.g. "cell1_y vs cell1_x"), with the tracename being the y wave with a suffix (e.g. "cell1_y_1" if it is displayed on top of image #1). This method allows me to specifically modify traces that occupy known locations.
The problem is that the user needs to be able to name and rename the tracings. When the x-y waves are renamed, the tracenames do not change (they do with the default #-style tracenames). Is there a way to force a name change? ReplaceWave doesn't address this (side note: ReplaceWave acts a little strangely with these non-default tracenames). Right now, it seems I have to RemoveFromGraph the old tracename and then AppendToGraph with the new tracename. Is that my only option? BTW, I'm using Igor 7. Maybe this works differently in Igor 8.
I'm grateful for anyone's insights into this.