當生成雙變量圖時(例如) - 文本框的大小對於內部書寫來說太窄了。
運行腳本後,我需要按住 CTRL 右鍵單擊文本框並選擇“自動換行”,然後選擇我想要的大小。
有什麼辦法可以默認選擇尺寸嗎?或任何添加到腳本以生成具有所需換行文本大小的繪圖的方法?
例如:
文本框結果

我想要的文本框結果

我使用的 JSL 代碼 - Y,X 可以是任何數據數字。名義上的圖例,如 Hose_1、House_2、...(參考線不重要)
Bivariate(
Y( :Y_column ),
X( :X_column),
by(),
Automatic Recalc( 1 ),
Group By(:Some_column),
Fit Spline( 0.1, Standardized,{REPORT(0)} ),
SendToReport(
Dispatch({},"1",ScaleBox,{Format( "m/d/y", 10 ), Interval( "Day" ), Inc( 4 ), Minor Ticks( 1 ),Rotated Labels( "Vertical" )}),
Dispatch({},"2",ScaleBox,{Add Ref Line( eval(Some_Line_set_in_global), "DashDotDot", "Black", "UCL", 2 ),Add Ref Line( eval(Some_Line_set_in_global), "DashDotDot", "Black", "LCL", 2 )}),
Dispatch({},"3",ScaleBox,{Rotated Labels( "Vertical" )}),
Dispatch({},"Bivar Plot",FrameBox,{Marker Size( 1 ), Marker Selection Mode( "Unselected Faded" ),{Frame Size( 390, 270 ), Marker Size( MSB ), Line Width Scale( 1 )},
Row Legend(:Some_column,Color( 1 ),Color Theme( "JMP Default" ),Marker( 0 ), Marker Theme( "" ),Continuous Scale( 0 ),Reverse Scale( 0 ),Excluded Rows( 0 ))}
)
)
);這
您好,您可以如下操作。您需要了解如何使用 JMP 的「顯示樹」來建立報表,以及 xPath ( ) 命令,因為它非常方便。
這裡需要回答兩個問題:
1)文本屬於哪種結構?
2) 如何最方便地存取這些結構-如果可能的話,一次存取所有結構。
<< 顯示樹狀結構訊息可以幫助解決 1),而 xPath ( ) 通常可以幫助解決 2)。
運行以下腳本。我在使用“<<”顯示樹狀結構訊息後添加了一個停止符 ( )。檢查樹狀結構,您會注意到要變更的文字位於報表中 PictureBox( 2 ) 下屬的每個 TextEditBox 結構中。

了解了這一點,你就可以像我一樣創建腳本的剩餘部分。當然,在最終的腳本中,你可以省略掉 rep << show treestructure 和 stop ( ) 這兩行;
Names Default To Here(1);
dt = astable((1::20)` || ((3::60::3)` + J(20,1,randomnormal())), <
<COLUMN names=""></COLUMN> Fit Where(
:groupgroupgroupgroupgroupgroup == "d",
Fit Spline( 0.1, {Line Color( {66, 112, 221} )} )
)
);
rep = report(biv);
rep << show tree structutre;
stop ();
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Use the tree structure to notice where the smoothing fit descriptions lie.
// They are in the 2nd picturebox of the report.
//get the picture box holding the spline fit descriptions
picBox = report(biv)[picturebox(2)];
// set the width of the textEditBoxes within the picture box, all at once, using xPath
// width is in pixels... use something you know will be well long enough.
( picBox << xPath("//TextEditBox") ) << set wrap width ( 1000 );
乾杯,
布雷迪
我使用的是 JMP14,當我把指令「set wrap width ( 1000 )」改為「set wrap ( 1000 )」後,它就能正常運作了。
效果很好
謝謝
喝