当生成双变量图时(例如) - 文本框的大小对于内部书写来说太窄了。
运行脚本后,我需要按住 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 )”后,它就能正常工作了。
效果很好
谢谢
喝