Display serie of waves with offset
phil
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
January 2, 2021 at 12:35 pm - Permalink
Also see File->Graphing Techniques->Fake Waterfall Plot
January 2, 2021 at 01:33 pm - Permalink
Here is a tiny function which offsets traces in the top graph by a choosable amount:
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
January 2, 2021 at 06:50 pm - Permalink