Display serie of waves with offset

Hello,

I have several waves that I would like to display in a graph (wave0 to wave50). I want to offset them for clarity. I am able to do it one wave at a time with ModifyGraph. However, I am trying to figure out how to make a function that would implement a gradual offfset on all my waves succesively.

Thank you

Philippe

Hi Philippe,

Perhaps the easiest way to get the offsets is to use the waterfall graph. Under Window>New>Packages>Waterfall Plot.

Andy

Here is a tiny function which offsets traces in the top graph by a choosable amount:

Function QuickOffset(variable offset)
    String Traces = TraceNameList("",";",1)     // get all the traces from the graph
    Variable i, Items = ItemsInList(Traces)     // count the traces
    for (i = 1; i < Items; i += 1)              // set new offset
        ModifyGraph offset($StringFromList(Items - 1 - i,Traces))={,i*Offset}
    endfor
End