我使用一個簡單的 JMP 插件來輸出一些圖。我可以做些什麼來改變 y 軸的小數精度,而不必每次都手動調整它?
現在的情況:

我希望如何:

我使用的腳本是這樣的:
gb1 = Expr(
Graph Builder(
Size( 635, 338 ),
invisible,
Show Control Panel( 0 ),
Variables( X( :Time Point Months ), Y( :Result ), Overlay( :Batch ) ),
Elements(
Points( X, Y, Legend( 1 ) ),
Line Of Fit( X, Y, Legend( 2 ), Confidence of Fit( 0 ) )
),
Local Data Filter(
invisible,
Add Filter(
columns( :Component, :Batch, :Source Table ),
Where( :Component == numPar[i] ),
Where( :Batch == {cyc[k], bat[k]} ),
Where( :Source Table == dt_name )
)
),
SendToReport(
Dispatch(
{},
"Time Point Months",
ScaleBox,
{Min( -0.1 ), Max( maxvalts ), Inc( 2 ), Minor Ticks( 1 )}
),
Dispatch(
{},
"Result",
ScaleBox,
{Min( Eval( minval )), Max( Eval( maxval )), Inc( Eval( (maxval - minval) / 10 ))}
),
Dispatch(
{},
"graph title",
TextEditBox,
{Set Text( numPar[i] || " vs. Time Point " )}
),
Dispatch(
{},
"Y title",
TextEditBox,
{Set Text( yTitleText )}
)
)
);
)
在圖形產生器中對其進行修改,從紅色三角形選單中取得腳本,然後根據該腳本進行更改
Graph Builder(
Variables(X(:weight), Y(:height)),
Elements(Points(X, Y, Legend(3))),
SendToReport(Dispatch({}, "height", ScaleBox, {Format("Fixed Dec", 12, 3)}))
);