That is the opposite of what I want -- I need the FrameBox()
only to be the specified size. Here is some example code illustrating this. The Size( 500, 500 )
is fed to both, but clearly the FrameBox()
size is very much not (500, 500)
.
As a matter of fact, it's not even the GraphBuilderContainerBox()
that you show that is set to the given size -- you first must remove the LegendBox()
, then the remaining (title / axes / axes headers) is set to the (500,500)
size. It is just ridiculous!
There is literally no way to set the FrameBox()
(as in, if you had this within an Outline Box( "", Graph Builder( ... ) )
and did Outline Box[Frame Box( 1 )] << Frame Size( 500, 500 ))
BEFORE / DURING instantiation of the GraphBuilder()
box. It can ONLY be done after the window and graph has been created.
Names Default To Here( 1 );
Open( "$SAMPLE_DATA/Cars.jmp" );
New Window( "TEST",
H List Box(
Graph Builder(
Size( 500, 500 ),
Show Control Panel( 0 ),
Fit to Window( "Off" ),
Variables(
X( :Make ),
X( :Model, Position( 1 ) ),
X( :Year, Position( 1 ) ),
X( :Protection, Position( 1 ) ),
X( :"D/P"n, Position( 1 ) ),
X( :Size, Position( 1 ) ),
X( :Doors, Position( 1 ) ),
Y( :Wt ),
Color( :Model )
),
Elements(
Bar(
X( 1 ),
X( 2 ),
X( 3 ),
X( 4 ),
X( 5 ),
X( 6 ),
X( 7 ),
Y,
Legend( 9 )
)
)
)
,
Graph Builder(
Size( 500, 500 ),
Show Control Panel( 0 ),
Fit to Window( "Off" ),
Variables( X( :Make ), Y( :Wt ) ),
Elements( Bar( X, Y, Legend( 11 ), Error Interval( "Standard Error" ) ) ),
SendToReport(
Dispatch(
{},
"Graph Builder",
FrameBox,
{Grid Line Order( 1 ), Reference Line Order( 2 )}
)
)
)
)
)
What I need is for the area that has the chart (the FrameBox()
) to be a given fixed size, independent of what size my axis are or how complicated and long the text is.
Jordan