retrieve wave names concerned by specific Y-axis (when multiple Y-axis)
lfSwitz
I need some help concerning the following point:
On a graph, I would like to know the y-axis used for each of my wave/traces.
In other words, I would like to have a way to know the y-axis name used for each of the waves of my graph, or, for each axis of my graph: what are the waves concerned by this axis.
For example, I have a graph with 6 waves appended on left axis, and 4 waves on right axis. Which command should I write to know for each trace to which axis (left or right) it belongs to?
I have tried AxisInfo("graph_name", "right" )
But the wave information contained in CWAVE only gives one single wave (the controlling wave of the axis), not the multiple/various waves concerned by this axis.
GetAxis is of no use as it only concerns the limit value of my display for this axis.
Thanks all for your help!
you want to get information about the trace, not the axis, I guess.
The code
Display yw vs xw
AppendToGraph/R=right yww vs xww
variable i
string traces = TraceNameList(S_name,";",1)
for(i=0; i < ItemsInList(traces); i+=1)
print TraceInfo(S_name,StringFromList(i,traces),0)
endfor
should give you in YAXIS and XAXIS the information you need.
Thomas
October 11, 2013 at 05:18 am - Permalink
Thank you very much Thomas for this quick reply.
October 11, 2013 at 06:01 am - Permalink
#include <Axis Utilities>
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
October 11, 2013 at 09:22 am - Permalink