嗨,我正在 jmp 中建立 1Click,當我創建二元石墨時,它會創建類似的盒子

我設法刪除它們(折疊),但問題是,因為它是 1Click,當我進行過濾之類的更改時,它會再次返回,因為在二元圖中設置為:自動重新計算(1)
所以我想從調度中刪除它,所以每次重新計算時都會將其刪除,它適用於圖片框,但不適用於大綱框,因為它看起來像是要求框命名而不是大綱框編號,任何想法

我在 JMP 18 和 JMP 14 下運行了您的程式碼。顯而易見的建議是升級。
您可能會嘗試的是每次從複選框調整圖表時完全刪除圖表
謝謝,這是有效的,但是......也許你可以幫助解決以下問題:
我有這段程式碼,當我使用圖例按鈕時,只有所有功能都在工作,但是當我開始使用過濾器時,它會打開一堆邊框框..我相信它來自“自動重新計算”,並且由於某種原因,邊框框是困在記憶裡…
知道如何解決這個問題嗎?
//obj << show tree structure
//Report( obj )[Outline Box( 1)] << Delete;
//Begin Script;
CreateTrendPlot = Function( {},
// Create and return the trend plot with legend
obj = Bivariate(
Y( :height ),
X( :weight ),
Automatic Recalc( 1 ),
Group By( :sex ),
Fit Spline( 0.1, standardized ),
SendToReport(
Dispatch( {}, "Bivar Plot", FrameBox,
{Row Legend(
age,
Color( 0 ),
Color Theme( "" ),
Marker( 0 ),
Marker Theme( "" ),
Continuous Scale( 0 ),
Reverse Scale( 0 ),
Excluded Rows( 0 )
), Row Legend(
age,
Color( 0 ),
Color Theme( "" ),
Marker( 0 ),
Marker Theme( "" ),
Continuous Scale( 0 ),
Reverse Scale( 0 ),
Excluded Rows( 0 )
)}
),
Dispatch( {}, "", Picture Box( 3 ), {Visibility( "Collapse" )} ),
Dispatch( {}, "", Picture Box( 2 ), {Visibility( "Collapse" )} )
)
)
);
CreateVarPlot = Function( {},
obj2 = Variability Chart(
Y( :height ),
X( :age, :sex ),
Connect Cell Means( 1 ),
Show Group Means( 1 ),
Show Grand Mean( 1 ),
Show Grand Median( 1 ),
Std Dev Chart( 0 ),
Points Jittered( 1 ),
Show Box Plots( 1 ),
Mean Diamonds( 1 ),
SendToReport(
Dispatch( {}, "2", ScaleBox,
{Min( 5000 ), Max( 2000 ), Inc( 100 ), Minor Ticks( 1 ),
Add Ref Line( 0, "Dotted", "Medium Light Gray", "", 1 ),
Add Ref Line( 3200, "Solid", "Black", "TGT", 4 ), Add Ref Line(
4200, "Dashed", "Medium Dark Red", "UCL", 4
), Add Ref Line( 2200, "Dashed", "Medium Dark Red", "LCL", 4 )}
),
Dispatch( {""}, "", NomAxisBox, {Rotated Tick Labels( 0 )} )
)
)
);
// Open Data Table: Big Class.jmp
// → Data Table( "Big Class" )
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
color = {"age", "sex"};
marks = {"age", "sex"};
boxPlot = {"age", "sex", "name"};
// Initial nlevels is the number of levels of 'age', as it is the first by-group used.
cur_col = "age";
cur_mar = "age";
// Creating the legend. For each selection, the previous spline fits are removed, then
// new ones are generated.
color_legend = Panel Box( "Choose Color",
legend1 = Radio Box(
color,
<<SET function=""></SET>
<DIV> </DIV>
<P> </P>JMP 16 中引入了 For Each() 函數。
這是 JSL 的修改版本,刪除了 For Each() 並用 For() 迴圈取代。我測試它是 JMP 14,它按預期工作。
Names Default To Here( 1 );
dt =
// Open Data Table: Big Class.jmp
// → Data Table( "Big Class" )
Open( "$SAMPLE_DATA/Big Class.jmp" );
biv = Bivariate(
Y( :height ),
X( :weight ),
Fit Spline( 10000, {Line Color( {212, 73, 88} )} ),
Fit Spline( 1, {Line Color( {61, 174, 70} )} ),
Automatic Recalc( 1 )
);
Report( biv )[framebox( 1 )] <<
add graphics script(
oboxes = biv << xpath( "//OutlineBox" );
For( i = 1, i <= N Items( oboxes ), i++,
box = oboxes[i];
If( Contains( box << get title, "Smoothing Spline" ),
box << visibility( "collapse" )
);
);
);你好,我正在使用 JMP14
在日誌中,這就是我所看到的
名稱未解析:For Each 訪問或評估 'For Each' , For Each(
{盒子},
盒子,
If( Contains( box << get title, "平滑樣條曲線" ),
框 << 可見性(“折疊”)
)
) /*###*/
您使用什麼版本的 JMP?
運行程式碼時,它會產生以下輸出

當輸出改變時,加入圖形腳本就會被執行。我的解釋是,您需要關閉與樣條擬合相關的輪廓框。這就是程式碼的作用。即使套用濾鏡等,大綱框仍保持折疊狀態。
您在日誌中收到任何錯誤訊息嗎?
嘗試這樣的事情。它使用添加圖形腳本來處理輪廓框的折疊
Names Default To Here( 1 );
dt =
// Open Data Table: Big Class.jmp
// → Data Table( "Big Class" )
Open( "$SAMPLE_DATA/Big Class.jmp" );
biv = Bivariate(
Y( :height ),
X( :weight ),
Fit Spline( 10000, {Line Color( {212, 73, 88} )} ),
Fit Spline( 1, {Line Color( {61, 174, 70} )} ),
Automatic Recalc( 1 )
);
Report( biv )[framebox( 1 )] << add graphics script(
oboxes = biv << xpath( "//OutlineBox" );
For Each( {box}, oboxes,
If( Contains( box << get title, "Smoothing Spline" ),
box << visibility( "collapse" )
)
);
);刪除/隱藏 OutlineBox 的一種快速而骯髒的方法:折疊它們 *) 並刪除標題。
如果您只是刪除標題 - 沒有先折疊它 - 您可能已經猜到了:它只是刪除了標題:)
*)要一次折疊所有 OutlineBox,請在按住 CTRL 鍵的同時點選灰色三角形。