你好,
我有一個包含雙變量分析的腳本,但是我希望只顯示線性擬合統計表,並隱藏圖表本身。
this_dt << Bivariate(
Y( Column(this_dt, this_cols[j])),
X( :"Time (Months)" ),
By( :"Lot Number" ),
Fit Line,
Invisible
)
正如您所看到的,我在 Bivariate( ) 中包含了 Invisible 條件,但該圖仍然顯示在我的 JRN 文件中,而且我不知道如何擺脫它。
你好,
我使用 Bivariate 函數只是為我的主圖生成線性擬合統計數據。 我使用 V 列錶框和 H 列錶框通過圖形生成器生成圖,然後使用雙變量為圖旁邊的 H 列錶框中的每個批號生成線性擬合統計數據。 每個圖形生成器圖可能有多達 20-30 個與之關聯的雙變量。
如果您能提出更好的選擇,我很樂意聽到! 下面是我的腳本示例,抱歉,如果它令人困惑,我不得不隱藏特定的文件路徑和列名。
// Generating Graphs
setup = Function({dt}, {Default Local},
dt = Open ( "file.JMP" );
dt << Select Where(:"column example" == "string example" );
cfg1 = EvalList({dt << Data View, { "col1", "col2", "col3", "coln"}});
EvalList({cfg1});
);
build_graphs = Function({cfgs}, {Default Local},
win = New Window( "window", vlb = V List Box() );
ncfg = NItems(cfgs);
for(i = 1, i <= ncfg, i++,
{this_dt, this_cols} = cfgs[i];
ncols = NItems(this_cols);
for(j = 1, j <= ncols, j++,
vlb << Append(H List Box (
this_dt << Graph Builder(
Show Control Panel( 0 ),
Size( 600, 400),
Variables(
X( :"X axis" ),
Y( Column(this_dt, this_cols[j]) ),
Overlay( :"overlay" )
),
Elements(
Points( X, Y, Legend(12) )
),
SendToReport(
Dispatch(
{},
"",
ScaleBox,
{Format( "Fixed Dec", 10, 0 ), Min(0), Max(50), Inc(6),
Minor Ticks(0)}
)
)
),
this_dt << Bivariate(
Y( Column(this_dt, this_cols[j])),
X( :"X axis" ),
By( :"overlay" ),
Fit Line,
SendToReport( Dispatch( {}, "", ListBox, {Visibility( "Collapse" )} ) )
)
));
)
);
win
);
dt = Open ( "file.JMP" );
cfgs = setup(dt);
Show(cfgs);
win = build_graphs(cfgs);
Show(win);
win << Save Journal("file.jrn", embed data(1));
謝謝你的建議。
我還找到了一個替代解決方案,我可以在 Bivariate() 中編寫它。
SendToReport( Dispatch( {}, "", ListBox, {Visibility( "Collapse" )} ) )上面的行隱藏了包含雙變量圖的框。
biv = this_dt << Bivariate(
Y( Column(this_dt, this_cols[j])),
X( :"Time (Months)" ),
By( :"Lot Number" ),
Fit Line,
Invisible
);
biv rep = biv << Report;
// one way
biv rep[PictureBox(1)] << Delete;
// other way
biv rep[PictureBox(1)] << Visibility( "Collapse" );