使用JSL隱藏圖形中的“哪裡(...)”文本框你好,
是否可以使用腳本隱藏/刪除帶有Where(col =“ x”)的文本行,如所附圖像所示?我是JMP的新手,還沒有弄清楚所有的來龍去脈。
我有一組堆積的數據,其中所有代謝物/計數標籤(pH,滲透壓等)都在一個列中,而所有相應的數據都在另一列中。 在我的情況下,where()文本框是無關緊要的,因為我已經用相同的標籤重命名了圖形標題。當我在JMP中查看圖像時,可以通過右鍵單擊來臨時手動隱藏文本框,但是不確定如何使用JSL隱藏它並在導出到html時保持隱藏狀態。
這是我的一張圖片的示例腳本:
Graph Builder(
Size( 531, 464 ),
Show Control Panel( 0 ),
Variables(
X( :Step ),
Y( :Name( "BR Metabolite/Count Data" ) ),
Overlay( :Run )
),
Elements(
Line( X, Y, Legend( 1 ) ),
Points( X, Y, Legend( 2 ), Jitter Limit( 0.2018 ) )
),
Where( :Name( "Metabolite/Count" ) == "pH" ),
SendToReport(
Dispatch(
{},
"Graph Builder",
OutlineBox,
{Set Title( "pH" ), Image Export Display( Normal )}
),
Dispatch(
{},
"graph title",
TextEditBox,
{Set Text( "pH vs. Step" )}
),
Dispatch( {}, "Y title", TextEditBox, {Set Text( "pH" )} )
)
);感謝您的幫助!
圖形腳本編寫回复:使用JSL隱藏圖形中的“哪裡(...)”文本框這應該工作
gb = Graph Builder(
Size( 531, 464 ),
Show Control Panel( 0 ),
Variables(
X( :Step ),
Y( :Name( "BR Metabolite/Count Data" ) ),
Overlay( :Run )
),
Elements(
Line( X, Y, Legend( 1 ) ),
Points( X, Y, Legend( 2 ), Jitter Limit( 0.2018 ) )
),
Where( :Name( "Metabolite/Count" ) == "pH" ),
SendToReport(
Dispatch(
{},
"Graph Builder",
OutlineBox,
{Set Title( "pH" ), Image Export Display( Normal )}
),
Dispatch(
{},
"graph title",
TextEditBox,
{Set Text( "pH vs. Step" )}
),
Dispatch( {}, "Y title", TextEditBox, {Set Text( "pH" )} )
)
);
(Report( gb ) << top parent)[Text Box( 1 )] << delete;回复:使用JSL隱藏圖形中的“哪裡(...)”文本框在這種情況下,使用<< <<刪除消息將影響您想要的更改,而可能不會造成影響。可通過<<可見性消息獲得更安全的更改。使用Collapse參數使其不可見,並且不在窗口中保存其空間。
回复:使用JSL隱藏圖形中的“哪裡(...)”文本框謝謝你的幫助。
它非常適合單個圖形,但現在不將任何修改後的圖形添加到我的vlistbox中。當我嘗試合併它們時,它總是會彈出一個空白框。我還嘗試了<< visibility(1)並得到了相同的結果。
(Report( gb1 ) << top parent)[Text Box( 1 )] << delete;
(Report( gb2 ) << top parent)[Text Box( 1 )] << delete;
(Report( gb3 ) << top parent)[Text Box( 1 )] << delete;
(Report( gb4 ) << top parent)[Text Box( 1 )] << delete;
//(Report( gb5 ) << top parent)[Text Box( 1 )] << delete;
(Report( gb6 ) << top parent)[Text Box( 1 )] << delete;
(Report( gb7 ) << top parent)[Text Box( 1 )] << delete;
(Report( gb8 ) << top parent)[Text Box( 1 )] << delete;
(Report( gb9 ) << top parent)[Text Box( 1 )] << delete;
(Report( gb10 ) << top parent)[Text Box( 1 )] << delete;
fig3 = expr(
New Window( "Production Bioreactor - Metabolites/Counts",
V List Box(gb1,gb2,gb3,gb4, gb6, gb7,gb8,gb9,gb10,gb11,gb12,gb13
)
));
回复:使用JSL隱藏圖形中的“哪裡(...)”文本框沒有完整的腳本,很難確定問題出在哪裡。 我的另一個問題是,為什麼要在代碼中的單個位置上執行所有刪除操作,而不是在生成圖形的位置上使用刪除代碼?還是在代碼中使用By子句,它將子目錄樹的結構更改為與單個獨立圖完全不同的層次結構。