stack waves in plot
schmaud
I have a plot containing some 20 similar waves. Now I would like to add a variable offset.
basically something like:
ModifyGraph offset(wave1)={1000,0}
ModifyGraph offset(wave2)={2000,0}
...
ModifyGraph offset(wave)={000,0}
but for all traces in a graph ( which unfortunately are not names systematically wave0, wave1,... but some numbers are missing).
Before writing a routine to do this, I thought I ask here whether this problem is already solved.
Browsing help did not yield anything, could be due to wrong searches as a non-native speaker.
Best,
Ralf
PS.: Still using igor 6.3...
Variable Inc
String Win
Variable i
String TraceList
If (ParamIsDefault(Win))
Win=""
EndIf
TraceList=TraceNameList(Win, ";", 1)
For (i=0;i<ItemsInList(TraceList,";");i+=1)
ModifyGraph /W=$Win Offset($StringFromList(i, TraceList,";"))={0,i * Inc}
EndFor
End
If Win is omitted, the top graph is used, otherwise win="MyWindow" specifies the target window.
HJ
April 23, 2018 at 05:00 am - Permalink
Ralf
April 23, 2018 at 09:32 am - Permalink