
appending same data to right axis

linepic
but error occures with wave name which I cannot solve.
My wave names are -0.5 V etc, so it should be typed as '-0,5 V'.
it works with commend windows but not with procedures.
It would be grateful if experts give some valuable comment on that.
Function plotfordisplay() //add logscale on right axis wave VG String traces=TraceNameList("",";",3) variable i for (i=0; i<itemsinlist(traces); i+=1) String trace = Stringfromlist(i, traces) wave appendaa = $trace appendtograph/R appendaa vs VG endfor end
TraceNameToWaveRef
to reference your waves.Here is an example, where I have modified your function, and made some example data so as to have a self contained snippet that illustrates the point (this is always a good idea!).
Hope this helps,
Kurt
March 28, 2017 at 11:32 pm - Permalink
HJ
March 29, 2017 at 02:01 am - Permalink
I appreciate your help!
March 29, 2017 at 11:57 am - Permalink