Names Default To Here( 1 );
Open( "$SAMPLE_DATA/Big Class.jmp" );
Graph Builder(
Size( 528, 484 ),
Show Control Panel( 0 ),
Variables( X( :sex ), Y( :height ), Group X( :age ) ),
Elements( Box Plot( X, Y, Legend( 1 ) ) )
);
// The code below could be put into an JMP Addin, and it would scan through all
// of the windows and when the first Graph Builder output window is found, it
// would set the standard settings
//
// The code could also be changed to display a list of all of the Graph Builder windows found
// and the user could then select the one(s) to set
//
// There are other issues, since the Graph Builder can produce a multitude of
// outputs. The setting of the graph area size, will vary based upon the
// elements within the output display.
i = 1;
stop = "No";
While( Window( i ) << Get Window Title != {} & Stop == "No",
If( Word( 2, Window( i ) << Get Window Title, "-" ) == " Graph Builder",
stop = "Yes";
Break();
);
i++;
);
If( stop == "Yes",
// Set the size of the display
Window( i )[Frame Box( 1 )] << Frame Size( 100, 300 );
// Set the title size
Window( i )[Outline Box( 1 )][Text Box( 1 )] << set font size( 20 );
// Set axis font size
Window( i )[AxisBox( 2 )] << label row( set font size( 14 ) );
);
Jim