如何從二元擬合中刪除平滑樣條控制如何刪除平滑樣條線控制項?我有一份帶有一堆樣條線的報告,這個控制項清單佔據了整個頁面,有效地折疊了圖表。我看到了類似的問題,但我的腳本中有另一部分,解決方案不起作用。
我該如何刪除它?
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>
回覆:如何從二元擬合中刪除平滑樣條控制這是您修改後的程式碼。由於您引用的欄位不在大類資料表中,因此必須變更第二個雙變數。我假設它們來自您的實際數據表。我還添加了指向兩個雙變量的變數。您對使用指向 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 << 可見性("折疊");