資料錶框的有條件顏色文本我想根據條件為資料錶框的特定單元格的文字著色。以我正在嘗試執行以下操作為例:
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << Select Where(:Age > 14);
:Age << Color Cells( "Red" );
上面給出了輸出:

但視窗中的結果是:
win3 = New Window( "Combined Report",
Data Table Box(dt));

沒有任何顏色。
總而言之,我想要做的事情與模型輸出視窗的 p 值發生的情況類似,當它們接近 0.05 的極限時,它們會被有條件地著色。
自動化和腳本編寫資料存取數據探索和視覺化回覆:資料錶框的有條件顏色文本如果您使用 << get as report 您可以獲得顏色
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
dt << Select Where(:Age > 14);
:Age << Color Cells("Red");
dt << clear select;
nw = New Window("",
dt << get as report
);

回覆:資料錶框的有條件顏色文本帶有單元格顏色的資料表可以移動到日誌中
names default to here(1);
dt =
// Open Data Table: Big Class.jmp
// → Data Table( "Big Class" )
Open( "$SAMPLE_DATA/Big Class.jmp" );
dt:name << color cells("red",{3,4,5,6,7});
dt:age << color cells("blue", {6, 8, 10});
nw = New Window("Output", <<JOURNAL></JOURNAL>
<P><SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1728652930272.png" style="width: 400px;"><SPAN class="lia-inline-image-display-wrapper" image-alt="txnelson_0-1728652930272.png" style="width: 332px;"><SPAN class="lia-inline-image-display-wrapper" image-alt="txnelson_0-1728652930272.png" style="width: 332px;"><span class="lia-inline-image-display-wrapper" image-alt="txnelson_0-1728652930272.png" style="width: 332px;"><img src="https://us.v-cdn.net/6038925/uploads/images/69035i30F4E03890B26090/txnelson_0-1728652930272.png" role="button" title="txnelson_0-1728652930272.png" alt="txnelson_0-1728652930272.png" /></span></SPAN></SPAN></SPAN></P>
<P><SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_2-1728652973234.png" style="width: 400px;"><SPAN class="lia-inline-image-display-wrapper" image-alt="txnelson_2-1728652973234.png" style="width: 153px;"><SPAN class="lia-inline-image-display-wrapper" image-alt="txnelson_2-1728652973234.png" style="width: 153px;"><span class="lia-inline-image-display-wrapper" image-alt="txnelson_2-1728652973234.png" style="width: 153px;"><img src="https://us.v-cdn.net/6038925/uploads/images/69037i96EE77964E3894C5/txnelson_2-1728652973234.png" role="button" title="txnelson_2-1728652973234.png" alt="txnelson_2-1728652973234.png" /></span></SPAN></SPAN></SPAN></P>
<P>使用替代方法,可以透過將資料表傳遞到日誌,然後將其新增至標準顯示窗口,將資料表新增至非日誌窗口</P>
<P> </P>
<CODE class=" language-jsl">names default to here(1);
dt =
// Open Data Table: Big Class.jmp
// → Data Table( "Big Class" )
Open( "$SAMPLE_DATA/Big Class.jmp" );
dt:name << color cells("red",{3,4,5,6,7});
dt:age << color cells("blue", {6, 8, 10});
nw = new window("Outline",ob=outlinebox("data table"));
ob<<APPEND></APPEND>
<P><SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_3-1728653771020.png" style="width: 400px;"><SPAN class="lia-inline-image-display-wrapper" image-alt="txnelson_3-1728653771020.png" style="width: 116px;"><SPAN class="lia-inline-image-display-wrapper" image-alt="txnelson_3-1728653771020.png" style="width: 116px;"><span class="lia-inline-image-display-wrapper" image-alt="txnelson_3-1728653771020.png" style="width: 116px;"><img src="https://us.v-cdn.net/6038925/uploads/images/69038iDDAC0EA4E28A359D/txnelson_3-1728653771020.png" role="button" title="txnelson_3-1728653771020.png" alt="txnelson_3-1728653771020.png" /></span></SPAN></SPAN></SPAN></P>
<P> </P>
<P> </P>回覆:資料錶框的有條件顏色文本好的!但就我而言,桌子很寬並且有滾動條。

這隱藏了我不想要的 las 專欄。是否可以使報告表的寬度適合視窗?
回覆:資料錶框的有條件顏色文本您可以修改已建立的表格框的可捲動屬性
Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Probe.jmp");
dt << Select Where(:Site > 2);
:Site << Color Cells("Red");
dt << clear select;
nw = New Window("",
rep = dt << get as report
);
tb = rep << Child;
tb << Set Scrollable(0,0);