JSL 在 Graph Builder(JMP14 版本)上的 5 x 5 網格中打印值 (Z)嘗試在以下 Graph Builder 腳本中打印 Z 列中的值。任何輸入。非常感謝..
X
|
是
|
Z
|
0
|
0
|
12A
|
0
|
1個
|
14B
|
0
|
-1
|
15C
|
0
|
2個
|
4F
|
0
|
-2
|
67D
|
1個
|
0
|
24S
|
1個
|
1個
|
34O
|
1個
|
-1
|
12A
|
1個
|
2個
|
46G
|
1個
|
-2
|
316
|
2個
|
0
|
67D
|
2個
|
1個
|
24S
|
2個
|
-1
|
12A
|
2個
|
2個
|
4F
|
2個
|
-2
|
84K
|
-1
|
0
|
84K
|
-1
|
1個
|
67D
|
-1
|
-1
|
15C
|
-1
|
2個
|
12A
|
-1
|
-2
|
84V
|
-2
|
0
|
51Y
|
-2
|
1個
|
24S
|
-2
|
-1
|
34R
|
-2
|
2個
|
31J
|
-2
|
-2
|
57U
|
---------------------------------------------- ----------
Graph Builder(
Variables( X( :X ), Y( :Y ), Overlay( :Z ) ),
Elements( Heatmap( X, Y, Legend( 11 ) ) ),
SendToReport(
Dispatch(
{},
"X",
ScaleBox,
{Min( -2.5 ), Max( 2.5 ), Inc( 1 ), Minor Ticks( 0 ),
Label Row( Show Major Grid( 1 ) )}
),
Dispatch(
{},
"Y",
ScaleBox,
{Min( -2.5 ), Max( 2.5 ), Inc( 1 ), Minor Ticks( 0 ),
Label Row( Show Major Grid( 1 ) )}
),
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
11,
Properties( 0, {Transparency( 0 )}, Item ID( "Count", 1 ) )
)}
)
)
);
腳本回复:JSL 在 Graph Builder(JMP14 版本)的 5 x 5 網格中打印值 (Z)太棒了......幾乎每天都能學到一些關於 JMP 的新知識回复:JSL 在 Graph Builder(JMP14 版本)的 5 x 5 網格中打印值 (Z)你應該看看用於標記列選項也是如此。 這可能完全符合您的要求,無需編寫腳本。


回复:JSL 在 Graph Builder(JMP14 版本)的 5 x 5 網格中打印值 (Z)我覺得@txnelson的解決方案最適合您,但我還有另一個解決方案只是為了確保您了解列屬性和行狀態的重要性和使用。 我將您的 Z 變量指定為標籤列(請參閱“列”面板)。然後我選擇了數據表中的所有行並分配了標籤行狀態。

現在 Z 值自動出現在標記旁邊的繪圖中(這不是您想要的)。

回复:JSL 在 Graph Builder(JMP14 版本)的 5 x 5 網格中打印值 (Z)這是對您的腳本的修改,它使用“<< 添加圖形腳本”來添加 Z 值

Names Default To Here( 1 );
dt = Current Data Table();
gb = dt << Graph Builder(
Size( 754, 752 ),
Show Control Panel( 0 ),
Variables( X( :X ), Y( :Y ), Overlay( :Z ) ),
Elements( Heatmap( X, Y, Legend( 13 ) ) ),
SendToReport(
Dispatch(
{},
"X",
ScaleBox,
{Min( -3 ), Max( 3 ), Inc( 1 ),
Minor Ticks( 0 )}
),
Dispatch(
{},
"Y",
ScaleBox,
{Min( -3 ), Max( 3 ), Inc( 1 ),
Minor Ticks( 0 )}
),
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
13,
Properties(
0,
{Transparency( 0 )},
Item ID( "Count", 1 )
)
)}
)
)
);
Report( gb )[FrameBox( 1 )] <<
add graphics script(
For( i = 1, i <= N Rows( Current Data Table() ), i++,
xyList = {};
Insert Into( xyList, :x[i] + .5 );
Insert Into( xyList, :y[i] + .5 );
Text( Center Justified, Eval( xyList ), :z[i] );
)
);