ReplaceWave Operation with Multiple Trace Instances

Hi,

I'm trying to use the ReplaceWave operation in a procedure but it's not behaving as I expected with traces of which there are multiple instances. I can replace the y-data of any given instance without problems, but if I replace the x-data for any one trace among the instances, all the instances will have their x-data replaced.

For example, a graph has 2 duplicate traces named "Y_Wave" and "Y_Wave#1", with the x-data from a wave named "X_Wave."
If the following command is used
ReplaceWave/X trace=Y_Wave#1, X_Wave2
then the x-data of both traces gets replaced (i.e. the x-data of traces "Y_Wave" and "Y_Wave#1" is now "X_Wave2").

Is this by design, and is there a workaround I can use?

Thanks!

(I'm using Igor version 6.3.6.4, 32-bit, on Win7 64-bit.)
It is not so much by design but rather just the way it happens to work. I'll see if this can be made a bit smarter so it can do what you expect.

For now, you will need to start out with separate x-waves for each trace you will be operating on. You may need to just duplicate the currently common x wave.


Larry Hutchinson
WaveMetrics
support@WaveMetrics.com