That's how you do it! It works!
However, I'm getting into another problem now. My plot is a series of wafer maps (wrapped by WaferID), and therefore need to be circles (not ovals). So I specifically set the size of the FrameBox:
(gb << xpath( "//FrameBox" )) << Set Width( 100 )<< Set Height( 100 )
Now, when window is created first, it has a size, and content (my plot) is stretched to fit the window. Even if I say:
(gb << xpath( "/OutlineBox" ))<<Set Stretch( "Off", "Off" );
It will ignore my size setting, stretch the plots to fit the window, and THEN turn off stretching.
Any idea how to go around it? Like, tell window to change its size according to content, not the other way around?