Hi. My question is if there is a simple way to navigate a display tree to get to the (x) AxisBox of a plot, if it's unknown whether other (y) AxisBoxes precede it in the tree. I'm considering possibly using Xpath or some other method. In my script, I create a window for my results, including a distribution. User has option of including histogram, outlier box plot, and/or normal quantile plot. Example:
Names Default to Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
//User controllable options to plot histogram, outlier box plot, or normal quantile plot
histopt = 1;
outlopt = 1;
nqplopt = 1;
//Make results window
Try(Window("My Window") << Close Window);
win = New Window("My Window",
TextBox("Important text info"),
LUB = LineUpBox(NCol(1), Spacing(10,10))
);
//Add distribution to it.
Eval(EvalExpr(
LUB << Append(
dist = Distribution(
Column("Height"),
Histogram(Expr(histopt)),
Outlier Box Plot(Expr(outlopt)),
Normal Quantile Plot(Expr(nqplopt)),
Capability Analysis(0),
Quantiles(0),
Vertical(0),
Stack(0),
Automatic Recalc(0)
);
);
));
win << Show Tree Structure;With all 3 plot options selected as above, the resulting tree structure shows me that the (y) AxisBox for the Normal Quantile Plot is titles "AxisBox(1), and the (x) AxisBox is titled "AxisBox(2)". If I turn off the normal quantile option and run the script again, the (x) AxisBox is now titled "AxisBox(1)". So unfortunately I cant refer to the Axis Box simply by its name, plus I don't like doing that as display box names can change. I do not know XPath well enough to tell it how to look for only x-axis Axis Box, but I'm wondering if there is some method like:
win << XPath("\\AxisBox() = "Xaxis");Or something akin to that?