
Plots and ModifyGraph command

paperlovestory
I'm trying to generate a plot from two separate 2D waves with respect to their x-scaling in a for-loop. It currently looks something like this:
Display for (bb = 0; bb < num_cols; bb += 1) AppendToGraph :wave1[][bb] AppendToGraph :wave2[][bb] ModifyGraph mode(wave2)=2,lsize(wave2)=3,rgb(wave2)=(1,16019,65535) endfor
The above is currently not doing what I'd like to see - which is, wave1 plotted in the default trace appearances, and wave2 modified as per the
ModifyGraph
line, for ALL values of bb. What I'm seeing now is it's only happening for the final value of bb. When doing this manually, I learnt that one can add the # to modify each trace name (?) from the following in the IGOR manual: "More precisely, traceName is a wave name, optionally followed by the # character and an instance number. For example, "mode(myWave#1)=4"." Not really getting it - adding "#bb" does not work.
Any help is appreciated. Thank you
I just tried a do-while loop as well:
But this resulted in an infinite loop...?
February 21, 2018 at 06:32 pm - Permalink
February 22, 2018 at 06:32 am - Permalink