Scripting Guide > Efficient Scripts > Script Graphs and Display Boxes
发布日期: 09/18/2023

Script Graphs and Display Boxes

When displaying large numbers in graphs, you can set a preference to use Fast Markers.

Preferences( Fast Marker Threshold( 25000 ) ); // 50000 is the default.

Collapse some of the outline nodes in a report to speed up the script.

SendToReport(
		Dispatch(
			{"Fit Life by X - Hours BY Arrhenius Celsius (Temp) Regression "},
			"Scatterplot",
			OutlineBox,
			{Close( 1 )}
		),

Construct your display boxes outside New Window() and then include them by reference in New Window(). This method saves the drawing until the end.

tb = Text Box( "Select:" );
lb = List Box( {"One", "Two", "Three"} );
New Window( "test", tb, lb );

The user might not need to see a report if the numbers will be used in another platform or for a future calculation. You can hide the report.

dt= Open( "$SAMPLE_DATA/Big Class.jmp" );
obj = Bivariate( Y( :Weight ), X( :Height ) );
obj << Show Window( 0 ); // hide the window
obj << Fit Line( {Confid Curves Fit( 1 )} );

Submit the following script to see the report window. Notice that the confidence curves were fit even though the window was not shown.

obj << Show Window( 1 );
需要更多信息?有问题?从 JMP 用户社区得到解答 (community.jmp.com).