Here is your script modified to place all of the distributions into a single window. I am not clear as to what you mean by "frame size adjusted". Could you please clarify that? Is it that you want all of the results shrunk down so they all fit within your display screen?
// Create a display window and place the distributions in it
New Window( "All Together",
// layout the distributions side by side
H List Box(
/*Run Analyte Array*/
analyteArr = Associative Array( :Analyte ) << Get Keys;
For( eachAnalyte = 1, eachAnalyte <= N Items( analyteArr ), eachAnalyte++,
/*Slope Distribution*/
Current Data Table( dtmain );
dtmain << Distribution(
Automatic Recalc( 1 ),
SendToByGroup( {:Analyte == analyteArr[eachAnalyte]} ),
SendToByGroup(
{:Analyte == analyteArr[eachAnalyte]},
Continuous Distribution( Column( :Slope ), Vertical( 0 ) )
),
By( :Analyte ),
SendToByGroup(
{:Analyte == analyteArr[eachAnalyte]},
SendToReport(
Dispatch(
{"Distributions Analyte=" || analyteArr[eachAnalyte], "Slope"},
"Distrib Outlier Box",
FrameBox,
{Frame Size( 550, 50 )}
),
Dispatch(
{"Distributions Analyte=" || analyteArr[eachAnalyte], "Slope"},
"Distrib Histogram",
FrameBox,
{Frame Size( 550, 325 )}
)
)
)
);
);
)
);
Jim