retrieve wave names concerned by specific Y-axis (when multiple Y-axis)

Dear Igor users,
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!
Hi,

you want to get information about the trace, not the axis, I guess.

The code
    Make/O xw, yw, xww, yww
    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