Life Distribution - 如何在同一張圖中製作 2 個圖,一個顯示生存,另一個不顯示生存?我有一個區間刪失數據表,當我做生命分佈 --> 比較組時,它給了我 Plot1;我真正想要的是 Plot2,為了做到這一點,我必須在沒有比較組的情況下進行生命分佈,使用單獨的 EVO/PVO 圖生成 plot3,更改 EVO 以顯示生存曲線,手動複製 PVO 圖的幀內容並粘貼幀內容進入 EVO 圖以獲得 plot2。它非常手動,有沒有使用腳本生成 Plot2 的好方法?

生命分佈 --> 比較組

情節1

Plot2,左線是EVO顯示生存, 右圖是 PVO不顯示生存;

壽命分佈 --> 通過 EVO/PVO

圖 3,EVO 有顯示生存, PVO 有炫耀生存

圖形腳本編寫回复:生命分佈 - 如何在同一張圖中製作 2 個圖,一個顯示生存,另一個不顯示生存?也許是這樣的:
//Your By-group analysis script.
obj = Life Distribution(
SendToByGroup( Bygroup Default ),
Y( :Y ),
//other messages
By( :Group )
);
//Get the display box trees of the two Life Distribution results.
rpt1 = report(obj[1]);
rpt2 = report(obj[2]);
//Get the correct frame boxes, send copy-paste messages.
//Finding the number in framebox(...) is the key.
//The number is relative to the root of tree. Here rpt1 and rpt2 are two roots.
//And the frameboxes are the SECOND frameboxes.
//The FIRST frameboxes relative to rpt1 and rpt1 are the Event Plot frames.
rpt1[framebox(2)] << copy frame contents;
rpt2[framebox(2)] << paste frame contents;