Author |
Topic |
|
datrix
11 Posts |
Posted - 07/15/2009 : 7:20:14 PM
|
Hello, its me again, with a probably easy question. Can somebody help me with the right syntax to access the X / Y Labels in a GraphLayer? I tried the part marked in red and other combinations.
-----------------------
string CreateYLogScaleGraphObject(double x_beg, double x_end, double x_inc, string x_label, double y_beg, double y_end, string y_label){
GraphPage grphData; grphData.Create("line.otp"); GraphLayer grphLayer = grphData.Layers(); Scale sc; // X Scaling sc = grphLayer.X; sc.From = x_beg; sc.To = x_end; sc.Type = LINEAR_SPACE; sc.Inc = x_inc; grphLayer.LT_execute("lab -s -xb;", x_label);
// Y Scaling sc = grphLayer.Y; sc.From = y_beg; sc.To = y_end; sc.Type = LOG10_SPACE; sc.Inc = 1; grphLayer.LT_execute("layer.y.minorTicks = 8"); grphLayer.LT_execute("lab -s -yl;", y_label); return grphData.GetName();
}
-----------------------
Is it possible to access the labels with internal Origin Object Classes instead of LabTalk-Script commands?
Thanks, datrix |
|
cpyang
USA
1406 Posts |
|
datrix
11 Posts |
Posted - 07/16/2009 : 05:35:20 AM
|
Exactly, what Ive been looking for. Works like a charm. ;)
Thanks from Germany. datrix
|
|
|
|
Topic |
|
|
|