I'm creating a script that will generate a report.
As a template for this report i have a tdr file with one 2D axis system.
The channels to be displayed are stored in an global array, it can be any number of channels (hypothetically).
Now for each channel I want to:
Create a new curve.
Create a new y-axis (except for the first, cause there is already one present)
Assign the y-axis to the corresponding curve
Assign the y-axis color to be the same as the corresponding curve.
Creating several curves workes fine (and displaying them).
Creating several y-axis workes fine as well.
However, the last two operations are not as straightforward. Should the y-axis be assigned to the curve or the other way around (basicly, how is this done)?
Setting the y-axis color sounds easy enough, from the help file:
"D2AxisYLineColor: Specifies the color of the selected y-axis."
However, when i use this command it doesn't change anything. Example:
Call GraphObjOpen("2DAxis1")
Call GraphObjOpen(D2AxisYObj(1))
D2AxisYTxtColor ="red"
D2AxisYLineColor = "red"
Call GraphObjClose(D2AxisYObj(1))
Call GraphObjClose("2DAxis1")
This code WILL change the label text color (as expected), the line color (which i believe is supposed to be the color of the axis itself) remains unchanged. What am i missing here?