如何从双变量拟合中删除平滑样条控制如何删除平滑样条线控件?我有一份包含大量样条线的报告,这些控件占据了整个页面,导致图表折叠。我看到过类似的问题,但我的脚本中有另一部分,解决方案不起作用。
我该如何删除它?
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
g=vlistbox(Big Class<<
Fit Group(
Bivariate(
Y(:height),
X(:weight),
Fit Line({Line Color({76, 114, 176})}),
Fit Spline(0.1, {Line Color({221, 132, 82})})
),
),
);
//This is the solution given to the question, but its not work for me, I guess because the vlistbox and fit grop
(Report(biv) << XPath("//BorderBox"))[2] << Visibility("Collapse");
//this might collapse too much, so make sure it doesn't
(Report(biv) << XPath("//IfBox")) << Visibility("Collapse");
自动化和脚本数据探索与可视化回复:如何从双变量拟合中删除平滑样条控制这是您提供的代码的简化版本。它只是打开数据表,运行双变量代码,然后删除样条曲线控件

Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
biv =Bivariate(
Y( :height ),
X( :weight ),
Fit Spline( 100000, {Line Color( {212, 73, 88} )} ),
Fit Spline( 10000, {Line Color( {61, 174, 70} )} )
);
(Report(biv) << XPath("//IfBox")) << Visibility("Collapse");回复:如何从双变量拟合中删除平滑样条控制我需要保持代码不变,因为我有更多的东西要显示
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
g=vlistbox(dt<<
Fit Group(
Bivariate(
Y(:height),
X(:weight),
Fit Line({Line Color({76, 114, 176})}),
Fit Spline(0.1, {Line Color({221, 132, 82})})
),
Bivariate(
Y(:thickness),
X(:date),
Fit Line({Line Color({76, 114, 176})}),
Fit Spline(0.1, {Line Color({221, 132, 82})})
),
),
);
//This is the solution given to the question, but its not work for me, I guess because the vlistbox and fit grop
(Report(g) << XPath("//BorderBox"))[2] << Visibility("Collapse");
//this might collapse too much, so make sure it doesn't
(Report(g) << XPath("//IfBox")) << Visibility("Collapse");
//open files
out=Tab Box(
"HELP",H List Box(V List Box(g)),
);
/* Create Tabed Journal for Display */
all=New Window("p_all",<<JOURNAL></JOURNAL>
回复:如何从双变量拟合中删除平滑样条控制这是您修改后的代码。由于您引用了 Big Class 数据表中没有的列,因此必须更改第二个双变量。我假设它们来自您的实际数据表。我还添加了指向 2 个双变量的变量。您提到使用指向 VListBox 的 g 变量没有与之关联的报告。

dt = Open("$SAMPLE_DATA/Big Class.jmp");
g=vlistbox(dt<<
Fit Group(
biv =Bivariate(
Y(:height),
X(:weight),
Fit Line({Line Color({76, 114, 176})}),
Fit Spline(0.1, {Line Color({221, 132, 82})})
),
biv2 = Bivariate(
Y(:weight),
X(:height),
Fit Line({Line Color({76, 114, 176})}),
Fit Spline(0.1, {Line Color({221, 132, 82})})
),
),
);
//This is the solution given to the question, but its not work for me, I guess because the vlistbox and fit grop
(Report(biv) << XPath("//IfBox"))[2] << Visibility("Collapse");
(Report(biv2) << XPath("//IfBox"))[2] << Visibility("Collapse");
//this might collapse too much, so make sure it doesn't
//(Report(g) << XPath("//IfBox")) << Visibility("Collapse");
//open files
out=Tab Box(
"HELP",H List Box(V List Box(g)),
);
/* Create Tabed Journal for Display */
all=New Window("p_all",<<JOURNAL></JOURNAL>
<P> </P>回复:如何从双变量拟合中删除平滑样条控制我会像 Jim 建议的那样使用 XPath 来执行此操作。您可以将 << Get XML 发送到您的报告并查看 XML,然后找到可用于构建查询的内容


快速检查似乎没有任何可以一直起作用的东西(helpKey 并不总是相同的,而且似乎也依赖于分析),因此您可能需要根据您的数据修改查询
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
nw = New Window("",
vlb = V List Box(
dt << Fit Group(
Bivariate(
Y(:height),
X(:weight),
Fit Line({Line Color({76, 114, 176})}),
Fit Spline(0.1, {Line Color({221, 132, 82})})
),
Bivariate(
Y(:weight),
X(:height),
Fit Line({Line Color({76, 114, 176})}),
Fit Spline(0.1, {Line Color({221, 132, 82})})
)
)
)
);
obs = vlb << XPath("//IfBox/OutlineBox"); // might collapse too much, but you could limit it to the specific reports
obs << Visibility("Collapse");
其他选项是首先从 ListBox 中获取轮廓框名称(我将为此使用 XPath)


然后您可以循环这些标题并隐藏相应的轮廓框(这可以通过多种不同的方式构建)
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
nw = New Window("",
vlb = V List Box(
dt << Fit Group(
Bivariate(
Y(:height),
X(:weight),
Fit Line({Line Color({76, 114, 176})}),
Fit Spline(0.1, {Line Color({221, 132, 82})})
),
Bivariate(
Y(:weight),
X(:height),
Fit Line({Line Color({76, 114, 176})}),
Fit Spline(0.1, {Line Color({221, 132, 82})})
)
)
)
);
reports = vlb << XPath("//OutlineBox[@helpKey = 'Bivariate Report']");
For Each({rep}, reports,
tebs = rep << XPath("//ListBox/ListBox[PopupBox and CustomBox]/TextEditBox");
ob_titles = tebs << get text;
For Each({ob_title}, ob_titles,
rep[OutlineBox(ob_title)] << Visibility("Collapse");
);
);
回复:如何从双变量拟合中删除平滑样条控制https://dergipark.org.tr/tr/pub/@binance-referans-kodu-nedir解决方案?
回复:如何从双变量拟合中删除平滑样条控制谢谢大家的帮助,结合所有的答案我使用了这个代码,它对我有用:
obs = vlb<< XPath("//IfBox/OutlineBox"); // 可能会折叠太多,但你可以将其限制到特定的报告中
obs << 可见性(“崩溃”);
obs = vlb << XPath("//BorderBox/ListBox"); // 可能会折叠太多,但您可以将其限制到特定的报告
obs << 可见性(“崩溃”);